Skip to main content

Multiple Row Selection

In this mode, multiple data and/or group rows can be selected at one time. To enable this mode, set the TableView.MultiSelectMode property to TableViewSelectMode.Row. In a TreeListView, use the TreeListView.MultiSelectMode property. The DataViewBase.NavigationStyle property must be set to GridViewNavigationStyle.Cell or GridViewNavigationStyle.Row.

MultiRowSelection

A View provides multiple methods that allow you to select/unselect multiple rows. These methods are listed in the table below. End-users can select multiple rows using SHIFT or CTRL keys. Enable the TableView.UseIndicatorForSelection/TreeListView.UseIndicatorForSelection option to allow an end-user to select a range of rows/cells by dragging the mouse along the Row Indicator Panel.

The following table lists methods that can be used to select and unselect rows.

Method

Description

DataViewBase.SelectAll

GridViewBase.ClearSelection

TreeListView.ClearSelection

Selects all rows within a View.

Unselects any selected rows within a View.

Unselects any selected nodes within a View.

GridViewBase.SelectRange

Selects multiple rows, while preserving the current selection (if any).

GridViewBase.SelectRow

GridViewBase.UnselectRow

Selects the specified row.

Unselects the specified row.

TreeListView.SelectNode

TreeListView.UnselectNode

Selects the specified node.

Unselects the specified node.

#Example: How To Select Rows That Contain The Specified Value

See Also