Object Reference > True DBGrid Properties > Presentation Property |
This property determines how the members of a ValueItems collection are displayed within the associated column.
valueitems.Presentation= value
Values
Design Time |
Run Time |
0 - Normal (default) |
dbgNormal |
1 - Radio Button |
dbgRadioButton |
2 - Combo Box |
dbgComboBox |
3 - Sorted Combo Box |
dbgSortedComboBox |
4 - Check Box |
dbgCheckBox |
Read/Write at run time and design time.
If set to 0 - Normal (the default), value items are displayed as text or graphics depending upon the setting of the DisplayValue and Translate properties.
If set to 1 - Radio Button, value items are displayed as a group of radio buttons within the cell.
If set to 2 - Combo Box, value items are displayed in a drop-down combo box within the current cell.
If set to 3 - Sorted Combo Box, value items are displayed in sorted order in a drop-down combo box within the current cell.
If set to 4 - Check Box, value items are displayed as a check box within the current cell.
Use the ValueItems property to access the ValueItems collection for a Column object.
Use the AnimateWindow properties for additional control over the behavior of the Combo Box and the Sorted Combo Box.
Note
If you are using setting 4 - Check Box with Boolean data, you do not need to add any members to the ValueItems collection, as Boolean values are handled automatically.
ValueItem Object, ValueItems Collection