L
Lasse Edsvik
Hello
I was wondering if there is a way to select a row in a datagrid if you
navigate in it using arrowkeys.
i have this onMouseUp, should do the same with arrowkeys:
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.CurrentCell = new DataGridCell(hti.Row, hti.Column);
dataGrid1.Select(hti.Row);
}
I was wondering if there is a way to select a row in a datagrid if you
navigate in it using arrowkeys.
i have this onMouseUp, should do the same with arrowkeys:
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.CurrentCell = new DataGridCell(hti.Row, hti.Column);
dataGrid1.Select(hti.Row);
}