Hi all gurus,
I am back with my problem.
I want to know datagrid's currentCell's top & Left Location.
How to get it.
Thank you.
Printable View
Hi all gurus,
I am back with my problem.
I want to know datagrid's currentCell's top & Left Location.
How to get it.
Thank you.
this is an example of using ther HitTestInfo,
however as you can see you can access the x,y co-ordinates which should give you the inofrmation you need
Public Sub DataGrid1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs)
Console.WriteLine()
Dim myHitTest As DataGrid.HitTestInfo
' Use the DataGrid control's HitTest method with the x and y properties.
myHitTest = DataGrid1.HitTest(e.X, e.Y)
Console.WriteLine("Column " & myHitTest.Column)
Console.WriteLine("Row " & myHitTest.Row)
Console.WriteLine("Type " & myHitTest.Type)
Console.WriteLine("ToString " & myHitTest.ToString)
Console.WriteLine("Format " & myHitTest.Type.ToString)
End Sub
I am working on VB.NET,
I tried different way and finally I got solution.
Thank you for your help.