Skip to content

alexey-zolotarev/winforms-grid-multiple-selection-using-web-style-checkboxes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Grid for Windows Forms - Multiple row selection using checkboxes (web style row selection)

Built-in Checkbox Column

In v13.2 and higher, Data Grid supports a built-in checkbox column for multiple row selection in grid Views. To activate this checkbox column, enable the GridView.OptionsSelection.MultiSelect option, and set the GridView.OptionsSelection.MultiSelectMode property to CheckBoxRowSelect.

In v18.1 and later versions, you can sync row selected states with a Boolean field in the bound data source. A checkbox column's bound mode ensures that row selection persists whenever you filter or group grid data.

See the following topic for more information: Multiple Row Selection Using Built-In Check Column and Selection Binding.

Custom Checkbox Column

This example shows how you can create a custom checkbox column to select rows in Data Grid. The checkbox column's header and group rows display check marks that allow users to toggle selection of all rows and row groups, respectively.

The GridCheckMarksSelection class adds a checkbox column to a target grid View, implements the row selection functionality, and exposes methods to work with the row selection in code.

Files to Look At

Documentation

See Also

Releases

No releases published

Packages

No packages published

Languages

  • Visual Basic .NET 53.4%
  • C# 46.6%