Free Trial Buy Now

GridLookup - Item Template

v

Description

The ASPxGridLookup control exposes the embedded ASPxGridView's powerful data representation functionality including support for templates. So, the ASPxGridLookup provides you with a capability to define templates for different elements of the built-in grid (such as data rows, data cells, etc).

This demo illustrates how the layout of the editor's list items can be modified by creating a template for the dropdown grid's 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'. These columns are pointed by 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 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.

Version: v2011 vol 2.11
Experience the DevExpress Difference Today
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.