C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着
public void  SelectListIndex(ListControl lc,string values)
        {
            string[] tempValues = values.Split(',');
            if (tempValues.Length > 0)
            {
                foreach (string tempvalue in tempValues)
                   foreach (ListItem li in lc.Items)
                    {
                        if (li.Value == tempvalue)                      
                            li.Selected = true;
                    }
            }
          
        }
posted on 2010-08-13 13:33  王德田  阅读(207)  评论(0编辑  收藏  举报