Is there a class like DataGrid.HitTestInfo for keyboard

  • Thread starter Thread starter GG
  • Start date Start date
G

GG

Is there a class similar to DataGrid.HitTestInfo for Keyboard moving?
Need to get the coordinates of the grid when the user is using the shift
key and arrows

Thanks
 
Are looking for how to get the current row number, column number, etc when
the user is navigating the grid with the keyboard?

dataGrid1.CurrentCellChanged += new EventHandler(this.CurrentCellChanged);
private void CurrentCellChanged(object sender, EventArgs e)
{
Debug.WriteLine("Cell Change - row: " +
dataGrid1.CurrentCell.RowNumber.ToString() + " col: " +
dataGrid1.CurrentCell.ColumnNumber.ToString());
}

HTH,
Eric Cadwell
http://www.origincontrols.com
 
Back
Top