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.

 

  • 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}">

  • 69686
    Verified Answer
    posted

    Hello,

    You can start following this thread with the same issue:

    http://community.infragistics.com/forums/p/5985/218759.aspx#218759