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 perform long press operation in SfDataGrid?

SfDataGrid fires the SfDataGrid.GridLongPressed event when the grid is long pressed. You can perform any desired operation upon long pressing by handling the GridLongPressed event. The GridLongPressed event provides you with the arguments “RowIndex and RowData” (the underlying data associated with the row based on the row type) there by allowing you to customise the long press event based on the requirements. The SfDataGrid fires this event for all type of rows such as header row, caption summary rows and data rows.

Refer the following code example that explains how to use the GridLongPressed event and display a pop up message when long pressing the rows.

 

The following screenshot shows the final outcome upon execution of the above code which displays the row index as a pop up upon Long Press


Article ID: Published Date: Last Revised Date: Platform: Control:
6366 02/19/2016 02/19/2016 Xamarin.iOS 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.