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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Position of the cell on the screen

Thread ID:





143392 Mar 18,2019 07:21 PM UTC Mar 19,2019 06:22 AM UTC WinForms 1
Tags: SfDataGrid
mariusz Jakoniuk
Asked On March 18, 2019 07:21 PM UTC

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

Mariusz Jakoniuk

Jagadeesan Pichaimuthu [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon