ArrayList to DataView

                   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);

posted @ 2007-03-20 11:43  ahuo  阅读(213)  评论(0编辑  收藏  举报