DataGrid Events

  • Thread starter Thread starter Kendal Goodrich
  • Start date Start date
K

Kendal Goodrich

Can someone please help. I am trying to make use of a datagrid in C#. I
create it and fill it with no problem. When it comes to double clicking it
I have problems. The double click event will not fire unless I double click
on the Row Header. If I remove the row header, I cannot get the event to
fire at all. I need the event to fire when I double click on a cell, not
the row header. Can anyone help me please?????

Thanks,
Kendal
 
Hi,

You can try to override the OnDoubleClick method in a control inherited from
the DataGrid. If this does not help, you can go further and override the
grid's WndProc method to handle WM_LDBLCLICK notifications.
 
Back
Top