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
115
How to find out the current width of the drop down?
posted

I am setting a datasource that contains a column whose width is too big, i would like to limit this to a specific width but only if it exceeds a specific value, i am able to set the width using UltraCombo.DropDownWidth, however the value of this property is -1 before assigning to it. How can i know the width that it will take?

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello,

    Could you please try the following code line and see if it meets your requirements:

    ultraCombo1.DisplayLayout.Bands["Band 0"].Columns["Column 0"].MaxWidth = 50;

     Please feel free to let me know if I misunderstood you or if you have any other questions.

Reply Children
No Data