感觉真蠢,直接遍历bs.List就行,不应这么复杂
首先确保数据源绑定的实体类与相同
IListbsvlist = new List();
IListbsvselected = new List();
GoodsPromTagDetailInfo info = new GoodsPromTagDetailInfo();
for (int i = 0; i <= bsv.Count - 1; i++)
{
bsSelected.MoveFirst();
GoodsPromTagDetailInfo cu = bsSelected.Current as GoodsPromTagDetailInfo;
bsvlist.Add(cu);
bsSelected.MoveNext();
}
网友评论