FlexGrid for WinForms
DataMap Property (CellStyle)

Gets or sets an System.Collections.IDictionary used to associate cell values with display values.
Public Property DataMap As IDictionary
Dim instance As CellStyle
Dim value As IDictionary
instance.DataMap = value
value = instance.DataMap
public IDictionary DataMap {get; set;}
property IDictionary^ DataMap {
   IDictionary^ get();
   void set (    IDictionary^ value);

If the cell is editable, this list of values is used to populate the drop-down System.Windows.Forms.ComboBox used to edit the cell. In this case, the order of the items in the combo list is determined by the order of the elements in the dictionary.

The most common dictionary class, System.Collections.Hashtable, uses arbitrary order. If you want control over the item order, use a different dictionary class such as System.Collections.Specialized.ListDictionary.

The C1FlexGrid assembly also includes a MultiColumnDictionary class, which can be used to create multi-column and data-bound dictionaries.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


CellStyle Class
CellStyle Members



Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback