ds.ReadXml(Application.StartupPath.ToString() + "file://SystemConfig.xml/");
DataTable dtt = new DataTable();
dtt=ds.Tables[0].Clone();
DataRow[] drs = ds.Tables[0].Select("Level='網絡'");
foreach(DataRow dr in drs)
{
dtt.ImportRow(dr);
}
this.dataGrid1.DataSource =dtt;
文章來源:http://www.cnblogs.com/wangdetian168/archive/2008/06/25/1230000.html