Object Reference > True DBGrid Properties > MaxComboItems Property |
This property controls the maximum number of items to be displayed in the built-in combo box.
valueitems.MaxComboItems= integer
Read/Write at run time and design time.
The default value for this property is 5.
When the Presentation property of a column's ValueItems collection is set to either of the combo box options (sorted or unsorted), the MaxComboItems property determines the combo box height in terms of the number of value items displayed.
If the total number of value items is less than or equal to MaxComboItems, then all value items will be shown. If the total number of value items exceeds MaxComboItems, only MaxComboItems will be shown, but a scroll bar will appear at the right edge of the drop-down combo to allow users to bring the other value items into view.
Use the ValueItems property to access the ValueItems collection for a Column object.
ValueItem Object, ValueItems Collection