枫叶一帆
分享你我的学习心得....

 var distinctValues = dtOnStorage.AsEnumerable()
                            .Select(row => new
                            {
                                product = row.Field<string>("WHITE_PART_EQP")
                            }).Distinct();

                        string product = "";
                        foreach (var item in distinctValues)
                        {
                            product = item.product + ",";
                        }

posted on 2012-04-21 10:54  枫叶一帆  阅读(299)  评论(0编辑  收藏  举报