I have got a combobox which has got values with large text. The size of the combobox is fixed, when user click on the right button to drop down the values, if should resize the values only the dropdown values which are displayed and not the actual combo box size.
let me know if this is not clear, i can paste a screenshot.
Sumit
Thanks. I got it working. I was using dropdownlist so i set the DropDownListWidth to -1 which does the work fo me. Thanks for the reply.
Hi Sumit,
So you want to size the columns to the data, but not change the size of the dropdown? This will mean the dropdown will show a scrollbar. I thikn if you set DropDownWidth to a fixed value, it will do what you want. Then you will need to call PerformAutoSize on each column to size the column to the data. Make sure you use the overload that takes an enum and specify sizing for all rows.