Dynamic DataMaps

If the list of valid values for a cell depends on the data item the cell is bound to, you can create a DataMap and override its getDisplayValues method to return a subset of the full value list.

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.