Home Forums WinForms controls Xceed Grid for WinForms RowSelector Double-Click? Reply To: RowSelector Double-Click?

Xceed Support
Member
Post count: 5658

It is not possible to get the DoubleClick event for the Row. However, you can trigger the same event for the cells and the RowSelector (little rectangle on the left).

e.g.,
<code>
private void Form1_Load( object sender, EventArgs e )
{
//Load data
gridControl1.ReadOnly = true;

foreach( Cell cell in dataRowTemplate1.Cells )
{
cell.DoubleClick += new EventHandler( cell_DoubleClick );
}

dataRowTemplate1.RowSelector.DoubleClick += new EventHandler( RowSelector_DoubleClick );
}

void RowSelector_DoubleClick( object sender, EventArgs e )
{
System.Diagnostics.Trace.WriteLine( “Select Selector” );
}

void cell_DoubleClick( object sender, EventArgs e )
{
System.Diagnostics.Trace.WriteLine( “Select Cell” );
}
</code>

Imported from legacy forums. Posted by CharlesB (had 3096 views)