Double click Row selection

what event should i use to capture the double click on any cell in the first column of a gdbg or on the row header to retrieve the value of the selected row..?

1 Reply

AD Administrator Syncfusion Team May 17, 2006 11:40 AM UTC

Hi Cheryl, Please try this code in CellDoubleClick Event. Here is a code snippet in VB.Net //Form Load Event. AddHandler gridDataBoundGrid1.CellDoubleClick, AddressOf gridDataBoundGrid1_CellDobulbeClick Private Sub gridDataBoundGrid1_CellDobulbeClick(ByVal sender As Object, ByVal e As GridCellClickEventArgs) If e.RowIndex > 0 AndAlso e.ColIndex = 0 Then Dim cm As CurrencyManager = Me.BindingContext.Item(Me.gridDataBoundGrid1.DataSource) Dim row As DataRowView = cm.Current MessageBox.Show(row.Row.Item(2)) End If End Sub Here is a sample. http://www.syncfusion.com/Support/user/uploads/GBC_Color_d0de4cc1.zip Please let me know if this helps. Best Regards, Haneef

Loader.
Up arrow icon