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

How to get the X and Y coordinates when interacting with SfDataGrid?

Platform: Xamarin.Forms |
Control: SfDataGrid |
Published Date: January 31, 2017 |
Last Revised Date: January 31, 2017

You can get the get the X and Y coordinates when interacting with SfDataGrid by using SfDataGrid.RowColumnIndexToPoint method. You need to pass the RowColumnIndex for obtaining the coordinates.

You can get these coordinates in anywhere while interacting with SfDataGrid. Refer the below code example in which the X and Y coordinates are obtained by passing the RowColumnIndex in GridTapped, GridDoubleTapped and GridLongPressed events.

 

Screenshot:

 

Note: Similarly, you can also get the RowColumnIndex based on the touch points using the SfDataGrid.PointToCellRowColumnIndex method.

 

Sample Link:

How to get the X and Y coordinates when interacting with SfDataGrid?

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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