DataGrid Cell Location

  • Thread starter Thread starter Angel Montesinos
  • Start date Start date
What do you mean by exact location? You can find the current row and
current column by using the CurrentCell property and you can use HitTest to
detect the mouse coordinates.

HTH,

Bill
 
No, but I have find the solution:

Rectangle cellPos = dataGrid1.GetCellBounds(dataGrid1.CurrentCell.RowNumber,
dataGrid1.CurrentCell.ColumnNumber);
 
Back
Top