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
140
UltraComboEditor - Auto select all the items
posted

How can I change select all the items on selecting the first item in the UltraComboBoxEditor:

Parents
  • 71886
    Offline posted

    Hello,

    Please try the following code sample and let me know if it helps:

            void ultraComboEditor1_ValueChanged(object sender, EventArgs e)

            {

                if (ultraComboEditor1.Text.Contains(ultraComboEditor1.Items[0].DataValue.ToString()))

                {

                    foreach (ValueListItem item in ultraComboEditor1.Items)

                    {

                        item.CheckState = CheckState.Checked;

                    }

                }

                else

                {

                    foreach (ValueListItem item in ultraComboEditor1.Items)

                    {

                        item.CheckState = CheckState.Unchecked;

                    }

                }

            }

Reply Children
No Data