DropDownCell Demo illustrates the usage of different dropdown controls as celltypes in grid cells. You will learn how to place combo boxes, multicolumn drop-down lists, color edits, calendars into cells.
Essential Grid uses a control-sharing architecture. While a combo box may appear in many different cells (even with different drop-list content), there is usually only a single combo box that is moved around and populated as needed. This architecture allows Essential Grid to have many different controls without the overhead of creating multiple controls of the same type. You can even create your own custom control types. Other samples like Derived Cell Control Tutorial, Cell Buttons and Virtual Tree Grid have examples of derived cell controls.
Given below is an image of the sample.
Features:
In this sample,
RichTextCells
Interactive Features with ComboBox and GridListControl
Cell Options
Set the drop-down style for the cells using the DropDownStyle property. One of the three enum values of GridDropDownStyle can be set each of which has a unique behavior.
An option to enable AutoComplete option in Editable mode can be achieved by AutoCompleteInEditMode property.
AutoComplete - Highlights a choice on the textbox from the list dropped down
AutoSuggest - Dynamically populates the dropdown choices based on the textbox text
Both - Any text can be typed without any limitation(Default option)
None - No operations on neither textbox nor dropdown listbox
NotClickable - When DropDownStyle is Exclusive, and the Clickable property is false, the drop-down cannot be clicked.
Hide Buttons - ShowButtons property with enum GridShowButtons options can be set to hide/show button in cell.
Button when editing - Set the enum value to ShowCurrentCellEditing to show buttons only when the current cell is being edited.
Disabled - Setting Enabled property to false disables editing the cell.
Read-Only - Set the cells to be read-only by setting ReadOnly property to true.
Empty - Illustrates an empty cell without any data.