Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Collapse]ASP.NET Bootstrap Controls
 [Expand]Getting Started
 [Collapse]Grid View
  [Expand]Binding to Data
  [Expand]Data Representation Basics
  [Expand]Data Summaries
  [Expand]Filtering
  [Expand]Grouping
   Sorting
  [Collapse]Focus and Navigation
   [Collapse]Selection
     Multiple Row Selection
    Paging
  [Expand]Data Editing
  [Expand]Master-Detail Relationship
   Export Overview
   Data-Toggle Attribute
 [Expand]Charts
 [Expand]Data Editors
 [Expand]Site Navigation and Layout
 [Expand]API Reference
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Selection

The Bootstrap Grid View allows end-users to change selection using any of the following methods.

 

The Bootstrap Grid View supports single and multiple row selection modes. You can switch the mode using a single option. To learn more, refer to the Multiple Row Selection topic.

To get the Grid View's selection, use the ASPxGridView.Selection property. The object returned by this property provides methods that allow you to select and deselect individual rows or all rows, obtain the number of selected rows, etc.

To respond to selection changes, handle the server-side ASPxGridBase.SelectionChanged event or the client-side ASPxClientGridView.SelectionChanged one.

Expanded Example

In this example, the client-side ASPxClientGridView.SelectionChanged event is handled to display selected contacts within the list box. Contact names are obtained using the ASPxClientGridView.GetSelectedFieldValues function.

The image below shows the result:

Expanded See Also

How would you rate this topic?​​​​​​​