Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: Non editable datagrid


Message #1 by s.anderson@c... on Fri, 14 Jun 2002 14:39:08
Sorry, I know this is a repeat post (Also on pro_windows_forms) but that 
list seems a little quiet and I could really do with some hints on this!

I'm going stir-crazy trying to use a datagrid to create the same effect 
that was so simple in VB6 with the (h)flxGrid.

When the user clicks a cell, I want the control to highlight the whole 
row, and NOT go into edit mode.  The data in the table is for display 
purposes only and is never edited/updated.

I have set readonly to true but this only stops the user modifying the 
cell entry.  Currently clicking on a cell allows the user to select and 
copy the text in the cell.  Because of this I cannot catch the 
DoubleClick event.

I considered using a listbox but I want the sort and other functionality 
of the datagrid.

Can someone point me in the right direction please?

Regards,

Stuart.

  Return to Index