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
295
how to fill only 3 columns of Ultracombo with a datasource > 3 columns
posted

I know this might be a juvinile question, but this is my first experince with C# and UI (both).

Question is: I have a datasource with 12 columns, but want to populate just three columns from the datasource. Have tried adding three columns and setting the "Key" to match the DataSource.Column name. but still see 12 columns

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

        UltraCombo (or UltraGrid or UltraDropDown) will always create all of the columns in the data source. There's no way around this - except to modify the data source or use a copy that only includes the columns you want.

        What you can do is hide the columns you don't want the user to see. The best place to do this is in the InitializeLayout event of the control. You just set Hidden to true on the columns you want to hide. 

        

Reply Children