Home Forums WinForms controls Xceed Grid for WinForms Selecting Row in grid on double-click Reply To: Selecting Row in grid on double-click

User (Old forums)
Member
Post count: 23064

Here’s an (untested) example, in C#:<code>EventHandler handler = new EventHandler(myGrid_CellDoubleClick);
foreach(Cell cell in myGrid.DataRowTemplate.Cells)
cell.DoubleClick += handler;
private void myGrid_CellDoubleClick(object sender, EventArgs e)
{
Cell cell = sender as Cell;
DataRow row = cell.ParentRow as DataRow;
}</code>

Imported from legacy forums. Posted by Tommy (had 4862 views)