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

How to select/unselect all check boxes using the check box in the GridColumn header

$
0
0

This sample illustrates how to create a check edit unbound column, place a check edit in the column header, and select/unselect all check boxes using one check box in the header.
You can get more information in the next KB article: How to implement multiple row selection behavior via a checked column.

Question Comments

Added By: Alexander (DevExpress Support) at: 5/17/2012 7:06:37 AM    

Hi all,

I have updated this solution to improve usability. I have created an attached behavior that can be used with ease. Simply add RowSelectionBehavior and to DXGrid to enable this functionality.

Added By: Charles Cuozzo at: 5/17/2012 8:10:03 AM    

This solution does not work for me. I am not including a Guid with the data supplied for an ItemsSource to the grid. What's more, the grid is implemented as a control template for the LookUpEdit control. I need to have a "select all" as well as check boxes in each row to either select all rows with a single click or select individual rows.

Added By: Alexander (DevExpress Support) at: 5/21/2012 3:16:28 AM    

Hi Charles,

Would you please create a separate ticket regarding this issue. We will research it and do our best to find the most appropriate solution according to your needs.

Added By: xiebbs xiebbs at: 9/9/2014 5:35:09 AM    

How to do for Winform ?

Added By: Andrey K (DevExpress Support) at: 9/9/2014 7:10:45 AM    I have created a separate ticket on your behalf in order to provide quicker and more efficient responses. We will answer you here: T148936: How to select/unselect all check boxes using the check box in the GridColumn header

Thanks,
AndreyAdded By: David_1 at: 3/9/2015 3:11:03 AM    

This does not work if in the SelectionView you set AllowEditing=False

Added By: Ivan (DevExpress Support) at: 3/9/2015 3:25:06 AM    

I see that you posted the same question in the T217070 ticket. Let's continue our discussion there.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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