How to move listitems(which are marked) in checkboxlist at run time?
Help is appreciated.....

Try out,

....
 for(int i=0;i<ListBox1.Items.Count;)
        {
            if (ListBox1.Items[i].Selected)
            {
                CheckBoxList1.Items.Add(ListBox1.Items[i]);
                ListBox1.Items.RemoveAt(i);
            }
            else
                i++;
         }
  ...

Thank u man i was looking for this solution for days

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.