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);
 

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