Data maps provide the grid with automatic look up capabilities. For example, you may want to display a customer name instead of his ID, or a color name instead of its RGB value.
Columns with an associated data map can be sorted by the mapped display value instead of the binding value.
Columns with an associated data map can be showed as AutoComplete, DropDownList or RadioButtons. You can choose these by setting DataMapEditor property.
Multi-column Data Map
The FlexGrid columns have a DropDownCssClass property that can be used to
style the drop-downs used to edit values in data-mapped columns.
To see the multi-column editor
in action, click one of the drop-down buttons in the "Color" column, or select a cell in that
column and press F4:
Dynamic Data Map
You can also use DataMap dynamically as filtering the values in the drop-down list if it depends on some conditions.
For example, the grid below shows a list of data items with countries and cities. The drop-down city list includes only cities in the data item's country.