Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create Checkable Grouping in GridControl

$
0
0

The example demonstrates how to add the CheckBox functionality to each GroupRow in TableView. The basic idea is to allow a user to easily check or uncheck the necessary group of items in GridControl.

The functionality is realized as behavior in the CheckableGroupBehavior class, which can be attached to GridControl. It automatically sets GroupValueTemplate using the GroupCheckBox class, which is inherited from the CheckBox class. The CheckableGroupBehavior's CheckableProperty must be set and has to contain the name of the property in a row data object, which will be used to check items. The property has to be of the Boolean type.

You can easily add the same functionality to your project by using the CheckableGroupBehavior class and attaching it as behavior to your GridControl.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>