listbox怎么连动listbox1,就再连动一遍listbox2不就行了。
要详细的把你代码帖出来。

解决方案 »

  1.   

     protected void MoveItems(ListBox fromList,ListBox toList)
        {
            try
            {
                //判断是否已经选择移动项目
                if (fromList.SelectedIndex > -1)
                {
                    int selectInde = fromList.SelectedIndex;
                    ListItemCollection listItemCollection = new ListItemCollection();
                    foreach (ListItem list in fromList.Items)
                    {
                        if (list.Selected)
                        {
                            listItemCollection.Add(list);
                        }
                    }
                    foreach (ListItem listItem in listItemCollection)
                    {
                        toList.Items.Add(listItem);
                        fromList.Items.Remove(listItem);
                    }
                    //焦点向上一位
                    if (selectInde > 0)
                    {
                        fromList.SelectedIndex = selectInde - 1;
                    }
                    
                }
            }
            catch (Exception exp)
            {
                //
              
            }
        }