J
Jim Slade
Fernando,
I guess you could use the DataGrid.Select() method. You can call it for
example from the MouseUp event when a cell is clicked.
private void dataGrid1_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
{
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hitTest = dataGrid1.HitTest(pt);
if(hitTest.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.CurrentCell = new
DataGridCell(hitTest.Row,hitTest.Column);
dataGrid1.Select(hitTest.Row);
}
}
Regards, Jim
I guess you could use the DataGrid.Select() method. You can call it for
example from the MouseUp event when a cell is clicked.
private void dataGrid1_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
{
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hitTest = dataGrid1.HitTest(pt);
if(hitTest.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.CurrentCell = new
DataGridCell(hitTest.Row,hitTest.Column);
dataGrid1.Select(hitTest.Row);
}
}
Regards, Jim