[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
     Save and Restore Layout
      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: Item Template

This example illustrates how the layout of editor list items can be modified by creating a template for the dropdown grid's data rows via the GridViewProperties.Templates.DataRow property (GridViewTemplates.DataRow).

Note that the incremental filtering functionality (enabled via the ASPxGridLookup.IncrementalFilteringMode property) works correctly when list item templating is used.

In this demo, incremental filtering is performed over the values of the first two data columns defined within the editor's ASPxGridLookup.Columns collection - 'First Name' and 'Last Name'. These columns are pointed by the ASPxGridLookup.TextFormatString property using indexed placeholders ({0} and {1}) that correspond to column indexes within the ASPxGridLookup.Columns collection. Thus, the ASPxGridLookup.TextFormatString property defines the format for displaying the selected item's value within the edit box ('First Name' 'Last Name') and serves as a column pointer and format designator for the incremental filtering functionality.

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