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 AMThis 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 AMHi 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 AMHow 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 headerThanks,
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 AMI see that you posted the same question in the T217070 ticket. Let's continue our discussion there.
Added By: Fs Developer at: 8/28/2015 10:40:27 AMHi:
How can I specify a header text next to the checkbox, because I tried the Header property but nothing is displayed.
Added By: Alexander S (DevExpress Support) at: 8/28/2015 11:31:04 AMHello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T283649: How to add text into the SelectAll column header. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.