Click here to Skip to main content
15,921,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one multiselect dropdown.Here i can select multiple values.In that one option is there "ALL".when iam selecting "ALL" i want to check all the check boxes or disable it.Please help me.
Posted
Comments
joshrduncan2012 9-Jul-13 13:37pm    
Where is your code? What is your question?
sony76 9-Jul-13 13:44pm    
My code is similar to this one only.In that multi select dropdown i have on option "ALL".when iam selecting that option i want to check all the checkboxes inside multiselect dropdown(to select all the values coming in the dropdown)
http://www.codeproject.com/Articles/30829/Multiselect-DropDown-ListBox-Control-for-Web-Appli

Hi, try to make an event in selecting the item, then filter "ALL"
Like this:

C#
private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
     if (checkedListBox1.SelectedItem.ToString() == "ALL")
     {
          checkedListBox1.Enabled = false;

          for (int x = 0; x < checkedListBox1.Items.Count; x++)
          {
              checkedListBox1.SetItemChecked(x, true);
          }

          //OR DO SOMETHING..

     }
}
 
Share this answer
 
v2
Please use [^]
Open source implementation Its having all functionality including select ALL feature.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900