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
Remove Columns from ComboBox
posted

When I bind a combobox to my datasource, I can see the columns collection populated. So far so good. The problem is the Remove button is disabled. Is this normal? I want to only display some of the columns, I see there is a hidden property. That works as expected, but I can't re-order the columns or change the headers text (at least not that I can find). 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    You cannot remove a bound column, you can only hide it. There is no remove button, there is only "Remove unbound column" which, of course, only works for unbound columns.

    I recommend that you hide, position, or change the captions of the columns in the InitializeLayout event of the combo at run-time.

    But if you want to do it at design-time, you can do all of these in the designer. Right-click on the combo and select "UltraCombo Designer". Then go to:

    Band and Column Settings --> Band [0] --> Column Arrangement Overview --> Column Arrangement Designer

     

Children