li.的博客
li.的首页 > li.的博客 > 浏览文章

winform获取checkedListBox控件的值

分类:winform  人气:875  评论:0  时间:2010-05-24 14:20
string ShopTypeIds = "";
            for (int i = 0; i < clb_ShopType.CheckedItems.Count; i++)
            {
                DataRowView dv = ((DataRowView)clb_ShopType.CheckedItems[i]);
                if (ShopTypeIds == "")
                {
                    ShopTypeIds = dv["id"].ToString();
                }
                else
                {
                    ShopTypeIds += "," + dv["id"].ToString();
                }
            }
标签(Tag):winform checkedListBox
评论(0)
暂无评论
我来评论
(800字以内)