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
455
UltraDropDown does not want to work
posted

Dear all,

unfortunatly I have problems with the UltraDropDown. At the moment I have this:

            for (int irow = 0; irow < grid.Rows.Count; irow++)
            {
                UltraDropDown Combobox = new UltraDropDown();
                Combobox.SetDataBinding(dt, null);
                Combobox.DisplayMember = "Col1";
                Combobox.ValueMember = "Col2";
                grid.Rows[irow].Cells["CB"].ValueList = Combobox;

                grid.Rows[irow].Cells["CB"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
            }

but no DropDown-Menu is shown. What is wrong?

dt is a Datatable with 5 Columns (Col1,Col2,...,Col5) and shall be bound to grid during runtime.

Thank you in advance

Best regards

Alex

Parents
  • 469350
    Offline posted

    Hi Alex,

    It's probably because the UltraDropDown control you are creating here is not parented to the form and thus has no BindingContext. Add the control to the form's Controls collection or set a BindingContext on it.

Reply Children
No Data