Swipe Buttons

In the GridControl, you can create additional buttons to be shown when an end-user swipes left to right, or right to left, over a data row — Swipe Buttons. Each button can be associated with a custom action. Thus, this feature allows you to extend the grid’s default UI and allow it to meet the requirements of your end-users completely.

A Swipe Button is specified by a SwipeButtonInfo object added to the grid's RightSwipeButtons or LeftSwipeButtons collection. For each button, a name, caption, color and width can be specified. To set a custom action for a button, handle the grid's SwipeButtonClick event, or define an action in a view model and then bind it to a button using the SwipeButtonCommand property in XAML markup. To specify when buttons should be available for end-users, handle the SwipeButtonShowing event.

In this demo, data rows are accompanied with one button on the left and one button on the right. Tapping any of these buttons displays the corresponding alert. For even data rows, one more button (Delete) is shown additionally on the right.

Related APIs:

GridControl.RightSwipeButtons

GridControl.LeftSwipeButtons

GridControl.SwipeButtonClick

GridControl.SwipeButtonCommand

GridControl.SwipeButtonShowing