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
510
Hide Columns in UltraCombo
posted

I have an UltraCombo with a DataTable as the datasource. The DataTable has over 10 columns but I only need to show 2 columns in the dropdown. How can I do this without defining each column in the designer and setting it to hidden?

Parents
  • 469350
    Offline posted

     Typically, you would use the InitializeLayout event of the combo. From there, you can access e.Layout.Bands.Columns["my column"].Hidden and set it to true for the columns you want to hide. 

Reply Children