GridControl.IsPullToRefreshEnabled Property
Gets or sets whether the pull-to-refresh functionality is enabled in the grid. This is a bindable property.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to enable the pull-to-refresh feature; otherwise, false. |
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
The GridControl‘s pull-to-refresh feature allows end-users to request a grid content update with the pull-down gesture.
To enable this functionality, set the IsPullToRefreshEnabled property to true. Then, either define a refresh command in a view model and bind it to the grid using the GridControl.PullToRefreshCommand property, or handle the GridControl.PullToRefresh event.
Example
This example shows how to add the pull-to-refresh functionality to a grid to allow your end-users update grid content with the pull-down gesture. To do this, follow the steps below.
- Set the
GridControl.IsPullToRefreshEnabled
property to true to enable the grid’s pull-to-refresh feature. - Create a command to be executed when an end-user pulls the grid down.
- Bind the created command to the grid using the GridControl.PullToRefreshCommand property.