How to make header column as check box column in Extended Data Grid

Oct 31, 2012 at 3:09 AM

How to make header column as check box column in Extended Data Grid

Coordinator
Nov 16, 2013 at 7:04 PM
Hello,

I know its late now.

But you can do this way.
 <ExtendedColumn:ExtendedDataGridCheckBoxColumn Binding="{Binding Check}" IsThreeState="True" Width="50">
                    <ExtendedColumn:ExtendedDataGridCheckBoxColumn.HeaderStyle>
                        <!-- Local Style for header of first DataGrid column. -->
                            <Style TargetType="Primitives:DataGridColumnHeader">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type Primitives:DataGridColumnHeader}">
                                            <CheckBox VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                    </ExtendedColumn:ExtendedDataGridCheckBoxColumn.HeaderStyle>
                </ExtendedColumn:ExtendedDataGridCheckBoxColumn>