Log In
[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
  [Expand]Chart Control
  [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]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [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]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.

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