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

How to set a selection state of a group based on its children selection

$
0
0

This example illustrates how to set a selection state of a group based on its children selection.

 

Place ASPxCheckBox to ASPxGridView's GroupRowContent template and handle ASPxCheckBox’ Load event. In this event handler, check if a row is selected. It is possible to get the check box' NamingContainer of the GridViewGroupRowTemplateContainer type and the container index. After that, iterate through the GroupRow child rows and set ASPxCheckBox’ CheckState property. To properly get the number of GroupRow ChildRows, disable the RowCache in ASPxGridView. It is neccessary to enable ASPxGridView's ProcessSelectionChangedOnServer property to process selection changes on the server side.

Also, refer to the How to implement select/unselect for all rows in a group row example for detailed information.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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