给你一个相类似的
DataView dv =(DataView)Session["shoukuanchaxun_kals_8008"];
int id =int.Parse(e.Item.Cells[8].Text);
dv.Sort="序号 desc";
int index =dv.Find(id);
shoukuanchaxun skcx =new shoukuanchaxun();
skcx.DeleteShouKuan(id);
dv.Delete(index);
DataView dv =(DataView)Session["shoukuanchaxun_kals_8008"];
int id =int.Parse(e.Item.Cells[8].Text);
dv.Sort="序号 desc";
int index =dv.Find(id);
shoukuanchaxun skcx =new shoukuanchaxun();
skcx.DeleteShouKuan(id);
dv.Delete(index);
private void FindInMultiPKey(DataTable myTable){
DataRow foundRow;
// Create an array for the key values to find.
object[]findTheseVals = new object[3];
// Set the values of the keys to find.
findTheseVals[0] = "John";
findTheseVals[1] = "Smith";
findTheseVals[2] = "5 Main St.";
foundRow = myTable.Rows.Find(findTheseVals);
// Display column 1 of the found row.
if(foundRow != null)
Console.WriteLine(foundRow[1]);
}