Skip to content

Commit 4c2dfd6

Browse files
authored
Merge pull request #629 from telerik/nkaraiva/select-column-docs-update
Add new UseCheckboxRowSelectionOnly in docs
2 parents 006bb85 + 43afd73 commit 4c2dfd6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

controls/gridview/columns/column-types/gridviewselectcolumn.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,27 @@ Me.RadGridView1.ShowSelectColumn = True
4444

4545
If the *MultiSelect* property is enabled, users can make a [multiple selection in RadGridView]({%slug winforms/gridview/selection/multiple-selection%}). When using the selection UI through GridViewSelectColumn, the users will be able to select multiple rows by simply checking a checkbox. If *MultiSelect* property is *false*, the users can select only a single row/cell.
4646

47+
#### Row selection via checkboxes only
48+
49+
In some cases, the user may need to use multiple row selection through the **GridViewSelectColumn** only. The **UseCheckboxRowSelectionOnly** property defines whether the user can select rows only via the checkboxes. When **UseCheckboxRowSelectionOnly** is set to *true*, the selection only via checkboxes is allowed. Thus, if you click with the mouse over different rows they will not get selected, until you check the corresponding checkbox from the **GridViewSelectColumn**.
50+
51+
{{source=..\SamplesCS\GridView\Columns\GridViewSelectColumn.cs region=CheckboxRowSelection}}
52+
{{source=..\SamplesVB\GridView\Columns\GridViewSelectColumn.vb region=CheckboxRowSelection}}
53+
54+
````C#
55+
this.radGridView1.MasterTemplate.UseCheckboxRowSelectionOnly = true;
56+
57+
````
58+
````VB.NET
59+
Me.RadGridView1.MasterTemplate.UseCheckboxRowSelectionOnly = True
60+
61+
````
62+
63+
{{endregion}}
64+
65+
66+
>note The **UseCheckboxRowSelectionOnly** will only be considered if **ShowSelectColumn** is set to *true*.
67+
4768
#### Hierarchy mode
4869

4970
**GridViewSelectColumn** is also supported when RadGridView is bound to hierarchical data and child templates in the hierarchy view are shown. In case you would like to enable this setting in a hierarchy, it is necessary to set **ShowSelectColumn** to the respective child template:

0 commit comments

Comments
 (0)