Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_windows_forms thread: Non-editable DataGrid


Message #1 by s.anderson@c... on Fri, 14 Jun 2002 13:18:56
Hi,

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