DataView dv;
DataTable tb;
tb = new DataTable("userlist");
tb.Columns.Add("name");
tb.Columns.Add("path");
for (int i = 0; i < t.Count; i++)
{
tb.Rows.Add(((Record)t[i]).Name, ((Record)t[i]).Ldappath);//类型转换
}
dv= new DataView(tb);