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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top