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
1445
Show only one column in a datasource
posted

I am using the combo box. I have it bound to a datatable. I set the ValueMemeber and DisplayMember. But it shows the enitre table. How can I get it to show only the display member?

  • 71886
    Offline posted

    Hello apalcer,

    A possible approach to achieve this might be by using a code like the following:

    ultraCombo1.DisplayLayout.Bands[0].Columns[ultraCombo1.ValueMember].Hidden = true;

    Please feel free to let me know if I misunderstood you or if you have any other questions.