C# Datagrid catch a double click

I've got a win form that shows it's data.  It's on a pageframe(1)

I need to grab the double click event and fetch it's (rows) data for edit on page2

this is the event I'm expecting to fire but no go in the debugger:

private void mmDataGrid1_DoubleClick(object sender, System.Windows.Forms.NavigateEventArgs ne)
{
int rowIndex = mmDataGrid1.CurrentRowIndex;
object PKey = mmDataGrid1.GetCurrentRowPK();

what am i missing in the capture of the event

TIA

__Stephen


Answer this question

C# Datagrid catch a double click

  • Pierre Christophe

    Thanks.  Great site for how to deal with a grid.

    Was the code that I was looking for.  unfortunatly when I add it to my form, it doens't run.  I guess that the modified form base I'm starting with is the reason.

    __Stephen

  • SelfishGene

    Hi Stephen,

    This FAQ might help: <a href="http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q869q">http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q869q</a>

    Colt

  • C# Datagrid catch a double click