2008年9月1日

DataTable过滤后的数据放到一个新表

DataTable dt_temp = new DataTable("dt_temp"); //要有表名
DataView dv = new DataView();
dv.Table 
= this.dt_temp;
dv.RowFilter 
= "ShipID="+ this.textBox1.Text;

DataTable dt = dv.ToTable();

posted @ 2008-09-01 17:45 LanYo 阅读(263) 评论(0) 编辑