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

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

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?

Article ID: Published Date: Last Revised Date: Platform: Control:
7392 01/31/2017 01/31/2017 Xamarin.Forms SfDataGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.