PrivateSub ultraGrid1_DoubleClickCell(sender AsObject, e As Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs) HandlesMe.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 AsNew OrderDetailsDialog()
dlg.OrderRow = e.Cell.Row
' Show the custom dialog box.
'
dlg.ShowDialog()
EndIfEnd Sub
privatevoid 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();
}
}