Occurs when a user taps and holds anywhere within the grid.
public event DataGridGestureEventHandler LongPress
The LongPress event's data class is DataGridGestureEventArgs. The following properties provide information specific to this event:
|Element||Gets the value that specifies the grid element with which a user interacts.|
|FieldName||Gets the field name of the column.|
|Item||Gets an object that specifies a data source’s item to which the grid’s data row corresponds.|
|RowHandle||Gets the grid’s row handle. Inherited from RowEventArgs.|
The event parameter’s Element property allows you to obtain the element with which a user interacts. If it is a data row, the Item property returns the data source’s item object that corresponds to the row. To obtain the tapped row handle, use the RowHandle property.