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

How to create the "select all" check box dynamically

$
0
0

UPDATED:

Starting with version v2014 vol 1 (v14.1), this functionality is available out of the box:
S173621: ASPxGridView - Add the built-in SelectAll CheckBox for Command Column

Simply set the GridViewCommandColumn.SelectAllCheckboxMode property to GridViewSelectAllCheckBoxMode.AllPages to activate it. Please refer to the ASP.NET: GridView Select All Rows Updated blog post and the Select All Rows demo for more information.

This sample illustrates how to add the "select all" check box dynamically within the HeaderCaptionTemplateContainer of the command column using the ITemplate interface.

Question Comments

Added By: Nathan Price at: 6/6/2012 11:01:56 AM    

In my project I have serveral fields that i do not wish to share on my page but i must have them. The visibility is set to false. When I insert your sample code into my project all invisible fields are now visible. Also the order of the fields on the gridview is altered and this is not prefferable. Thanks for your time.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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