Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
MaxDropDownItems for ComboBoxTool
posted

Is it possible to control how many items are displayed when the user displays the dropdownlist of a ComboBoxTool embedded in a toolbar?  

The regular combo box editor for windows forms has the MaxDropDownItems property, but I can't find a way to control this for the toolbar tool.

Parents
No Data
Reply
  • 28945
    Offline posted

    The MaxDropDownItems property is exposed on the ValueList class which is part of the ComboBoxTool. Alternatively it can be set on the ValueList your combo is bound. 

    eg.

    ComboBoxTool combo = ((ComboBoxTool)ultraToolbarsManager1.Tools[0]);
    combo.ValueList = valuelist1;
    combo.ValueList.MaxDropDownItems = 5; 
    valuelist1.MaxDropDownItems = 5;

    Let me know if you have any questions.  

Children
No Data