[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Expand]Data Shaping and Manipulation
    [Expand]Data Formatting
    [Expand]Master-Detail Relationship
     Appearance Customization
      ASPxGridLookup - Overview
      Selection Modes
      Incremental Filtering
     [Expand]Member Tables
       How to: Multiple Selection
       How to: Filtering with a Server Mode
       How to: Item Template
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Member Tables
   [Expand]ASPxGridView - Animated Images
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Multiple Selection

This example illustrates how item multi-selection can be easily implemented within ASPxGridLookup, using the corresponding functionality of a built-in grid.

In this sample, the ASPxGridLookup.SelectionMode property is set to GridLookupSelectionMode.Multiple. End-users can select items by clicking check boxes within the dropdown grid or by entering tag names separated with a semicolon into the editor's edit box.

To display check boxes within a dropdown grid, a specific command column is created within the editor's ASPxGridLookup.Columns collection, and the column's GridViewCommandColumn.ShowSelectCheckbox property is set to true. In addition, end-users are allowed to filter items within the dropdown grid, because the editor's ASPxGridViewSettings.ShowFilterRow property is set to true.

As for entering tag names into the editor's edit box directly, this functionality is controlled by the ASPxGridLookup.TextFormatString property that defines a column ("TagName"), whose values should be entered and represented within the edit box. Symbols defined via the ASPxGridLookup.MultiTextSeparator property (", ") are used as a value separator. List items (grid rows) that correspond to the entered tag names are selected automatically on submitting the entered value (for instance, pressing the ENTER key or invoking the dropdown window).

Is this topic helpful?​​​​​​​