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
575
Resizing a combo editor when the column resizes
posted

Hi,

Is there an easy way to tell the WinGrid that the width of the combo in the column is the same as the width of the column itself.  Because I have embeded a combo to a column and when I drop down the combo the width of that combo is not the same as the width of that containing cell and also when I resize the column it become worse.

  • 69832
    Suggested Answer
    Offline posted

    The ValueList class exposes a DropDownListWidth property, which you can set to zero to make the list's width the same as that of the column in which it is embedded. It defaults to -1, which causes it to size itself only as wide as it needs to be to show the widest item.