Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int aRow = 0;
int aCol = 0;
// Use the HitTest method to get a HitTestInfo object.
DataGrid.HitTestInfo hi;
DataGrid grid = (DataGrid)sender;
hi=grid.HitTest(e.X, e.Y);
// Test if the clicked area was a cell.
//could have been a header
if (hi.Type == DataGrid.HitTestType.Cell)
{
aRow = hi.Row + 1;
aCol = hi.Column + 1;