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
460
UltraDropDownFields
posted

Hi

I have UltraDropDown control set to one of  the Grid Cell. i am assigning DataTable as DataSource to the DropDown, which have 4 columns.

I have to show only one when user selects...But the issue is it is showing all columns available at DataTable

I am using this code to set

 

 cmbControl.DisplayMember = tableData.Columns[0].ColumnName;
 cmbControl.ValueMember = tableData.Columns[0].ColumnName;

What could be the issue?

 

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    What you should do is handle the InitializeLayout event of the UltraDropDown control. You can hide any columns you don't want the use to see using the Hidden property on the column:

    e.Layout.Bands[0].Columns["Key of the column I want to hide"].Hidden = true;