'Declaration Public Event DoubleClickCell As DoubleClickCellEventHandler
public event DoubleClickCellEventHandler DoubleClickCell
The event handler receives an argument of type DoubleClickCellEventArgs containing data related to this event. The following DoubleClickCellEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cell | Returns the cell in the grid which was double clicked on. |
Private Sub ultraGrid1_DoubleClickCell(sender As Object, e As Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs) Handles Me.ultraGrid1.DoubleClickCell ' Check to see if the user double-clicked on a cell in the "OrderDetails" column. ' If e.Cell.Column.Key = "OrderDetails" Then ' Create an instance of a custom dialog box which shows details about ' the order contained in the row of the cell that was clicked on. ' Dim dlg As New OrderDetailsDialog() dlg.OrderRow = e.Cell.Row ' Show the custom dialog box. ' dlg.ShowDialog() End If End Sub
private void ultraGrid1_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { // Check to see if the user double-clicked on a cell in the "OrderDetails" column. // if( e.Cell.Column.Key == "OrderDetails" ) { // Create an instance of a custom dialog box which shows details about // the order contained in the row of the cell that was clicked on. // OrderDetailsDialog dlg = new OrderDetailsDialog(); dlg.OrderRow = e.Cell.Row; // Show the custom dialog box. // dlg.ShowDialog(); } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2