ArrayList al = new ArrayList();
al.Add(i.ToString());
al.Add(rso);
///....
String[] s = new String[al.Count];
a.CopyTo(s);
//将dt中的重复数据过滤掉
DataView myDataView = new DataView(dt);
// string[] strComuns ={ "站点编号", "站点名称", "时间" };//此处可加任意数据项组合
dt = myDataView.ToTable(true, strComuns);
//将dt中的重复数据过滤掉
本文介绍了一种使用 C# 对数据进行处理的方法,包括如何利用 ArrayList 存储数据、转换数据类型,以及通过 DataView 和 DataTable 结构来过滤重复数据的具体实现。
1万+

被折叠的 条评论
为什么被折叠?



