Quantcast
Viewing all articles
Browse latest Browse all 7205

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

Starting with version 14.2, GridControl provides Selector Column out of the box. To show this column, set the TableView.ShowCheckBoxSelectorColumn property to true.

For version older than 14.2, to achieve this functionality, it is necessary 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 about this approach in the following 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.

Added By: Fs Developer at: 8/28/2015 10:40:27 AM    

Hi:

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 AM    

Hello,

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles