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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the CheckBoxColumn values based on row selection?

In SfDataGrid, you can able to select multiple rows using SelectionMode property. You can process the CheckBoxSelection using GridCheckBoxColumn and a Boolean property called IsSelected in Model. You can also select all the rows in SfDataGrid by defining the CheckBox in header cell of GridCheckBoxColumn using GridColumn.HeaderTemplate.



You have to use IsSelectAll property in ViewModel to update the SelectAll check box value when performing selection in SfDataGrid. By using Command, you can select all the rows in SfDataGrid when the SelectAll CheckBox is checked and also you can clear the selection for all the rows in SfDataGrid when the CheckBox is unchecked.


You have to override ProcessPointerReleased and ProcessKeyDown methods in GridSelectionController to update the IsSelected value of the particular row while selecting or deselecting.


The following screen shot demonstrate the CheckBoxSelection in SfDataGrid.

C:\Users\Farjanaparveena\Desktop\CheckBox Custom Sample\CheckBox.png




Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
6711 04/22/2016 04/22/2016 UWP SfDataGrid 4.5
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon 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.Close Icon