Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Add a checkbox to the column header.
posted

How can I add a CheckBox into a column header?  

I'd need to hook up some events whenever the user clicks it too.

 

Parents
No Data
Reply
  • 560
    Verified Answer
    posted

    For the record:

     <igDP:XamDataGrid.Resources>

                <Style x:Key="CheckBoxedHeaderStyle" TargetType="{x:Type igDP:LabelPresenter}">

                  <Setter Property="ContentTemplate">

                    <Setter.Value>

                      <DataTemplate>

                        <CheckBox Name="HeaderCheckBox" Content="{Binding}" Click="HeaderCheckBox_Click"/>

                      </DataTemplate>

                    </Setter.Value>

                  </Setter>

                </Style>

              </igDP:XamDataGrid.Resources>

    [....]

    <igDP:FieldSettings AllowEdit="True" LabelPresenterStyle="{StaticResource CheckBoxedHeaderStyle}">

Children
No Data