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 column name on tapping a row in SfDataGrid?

You can get the column name while tapping a row by using the SfDataGrid.GridTapped event. It provides the row column index in its argument. Thus, using the ColumnIndex you can get the column name of the tapped cell in SfDataGrid.

Refer the below code example in which the GridTapped event is hooked in SfDataGrid.


The below code illustrates how to get the Column name of the tapped cell using the ColumnIndex obtained from the GridTapped event arguments and show it in a DisplayAlert.


On executing the above code and tapping a cell in SfDataGrid, a DisplayAlert will be display the column Name as shown below.


Sample Link:

How to get the column name of the selected row?

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

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