Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

Item Template


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.

Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxGridViewDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxGridViewDemos