Edit this page

CheckBox Column

GridViewCheckBoxColumn derives from GridViewBoundColumnBase class and its content is represented by a CheckBox for each row. The difference between it and GridViewSelectColumn is that this one is meant to bind to data. As opposed, GridViewSelectColumn allows you to select the row via the CheckBox in it.

[XAML] Example 1: Declare a column of type GridViewCheckBoxColumn.

<telerik:RadGridView x:Name="radGridView"
        <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsActive}" />

Use this column for better performance when you know that the underlying data is of a boolean type.

One property existing only in this type of column is AutoSelectOnEdit - when set to True the CheckBox is automatically toggled on editing the cell thus decreasing the number of clicks you need to take to change the boolean value.
Here are the possible cases:

  1. Default (AutoSelectOnEdit="False", EditTriggers="Default") - three clicks are needed to change the value of the checkbox - two clicks to enter the edit mode and one click to toggle the checkbox state.

  2. AutoSelectOnEdit="True", EditTriggers="Default" - two clicks are needed to change the value of the checkbox - the clicks to enter the edit mode.

  3. AutoSelectOnEdit="True", EditTriggers="CellClick" - only one click is needed to change the value of the checkbox.

See Also