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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Position of the cell on the screen

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

Greetings
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. 
 
Regards, 
Jagadeesan

CONFIRMATION

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

;