Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Item Template

v

The DevExpress ASP.NET Grid Lookup (ASPxGridLookup) control includes many of the powerful data representation features of the ASPxGridView, including support for templates. Templates can be defined for different elements of the built-in grid such as data rows and data cells.

This demo illustrates how the layout of the editor's list items can be modified by creating a template for the drop-down grid data rows via the Templates.DataRow property. Note that the incremental filtering functionality (enabled via the 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 Columns collection - 'First Name' and 'Last Name'. The TextFormatString property using indexed placeholders ({0} and {1}) that correspond to column indexes within the Column collection. Thus, the TextFormatString property defines the format for displaying the value of the selected item within the edit box. The indexed placeholders ({0} and {1}) correspond to column indexes within the Column collection.