We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Position of the cell on the screen

How to determine the location of the cell on the screen. What is the distance from the left and from the top.

Mariusz Jakoniuk

1 Reply

JP Jagadeesan Pichaimuthu Syncfusion Team March 19, 2019 06:22 AM UTC

Hi Mariusz Jakoniuk, 
Thanks for using Syncfusion product. 
You can able to get the location of the cell by using the TableControl.GetCellRectangle method. Please find the below code snippet, 
Rectangle rect = this.sfDataGrid1.TableControl.GetCellRectangle(5, 2, false); 
Point screenPoint = this.sfDataGrid1.PointToScreen(new Point(rect.Left, rect.Top)); 
And also you can refer the below documentation link to get the screen point for the given cell below, 
Let us know whether this helps also if you need any further assistance on this. 

Live Chat Icon For mobile
Up arrow icon