We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

datagridcontrol with checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

110464 Aug 5,2013 09:17 AM Sep 5,2013 10:27 AM WPF 1
loading
Tags: GridControl
Andreas Löwe
Asked On August 5, 2013 09:17 AM

Hi,

is there a sample using a Checkbox in the Header of a column.
This Checkbox should un/check all checkboxes in the rows, even over paging.

Cheers

 

Andreas Löwe

 


Saravanan M [Syncfusion]
Replied On September 5, 2013 10:27 AM

 

Hi Andreas,

We have analyzed your query, you can add checkbox in the column header by using GridDataCheckBoxVisibleColumn. You can refer the below code snippet.

Codesnippet[XAML]:

<syncfusion:GridDataCheckBoxVisibleColumn MappingName="Selected" AllowSort="False" HeaderText="False">

    <syncfusion:GridDataCheckBoxVisibleColumn.HeaderCellTemplate>

       <DataTemplate>

        <CheckBox  Name="checkbox" IsChecked="{Binding CellBoundValue}" IsThreeState="False" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Black" Content="IsChecked">

            <i:Interaction.Behaviors>

            <local:ButtonClickBehavior/>

            </i:Interaction.Behaviors>

         </CheckBox>

        </DataTemplate>

     </syncfusion:GridDataCheckBoxVisibleColumn.HeaderCellTemplate>

                   

 <syncfusion:GridDataCheckBoxVisibleColumn.ColumnStyle>

 

 

We have prepared a sample based on this, Please find the attached sample.

Please let us know if you  have any queries,

Regards,

Saravanan.M

 



GridDataControl_checkboxselection_9142cb02.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;