Lennart said:
Clay,
No, that just gives me the column and row index.
lennart
I have a DataGridView control called "Grd" and I need to know the bottom
left-hand pixel of the Selected Cell during Cell Editing, I use the
following in the "Grd.CellBeginEdit" and it works perfectly -
Dim X As Integer = Grd.GetCellDisplayRectangle(e.ColumnIndex,
e.RowIndex, False).Left + Grd.Left
Dim Y As Integer = Grd.GetCellDisplayRectangle(e.ColumnIndex,
e.RowIndex, False).Bottom + Grd.Top
You can play with different Properties such as Right, Top etc. Remember
that your DataGridView control is sitting inside a container (either a
Form or maybe a Layout control, or maybe both!) so you must allow for
the position of the DataGridView control in your calculations, which is
why I use "Grd.Top" and "Grd.Left".
Hope this helps.
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.