int ID = Convert.ToInt32(e.CommandArgument);
DataRow[] rows = ds.Tables[0].Select("jobid="+ID);
if (rows.Length > 0)
{
int iIndex = ds.Tables[0].Rows.IndexOf(rows[0]);
//删除数据但不删除行
//ds.Tables[0].Rows[iIndex].Delete();
//直接把行删除
ds.Tables[0].Rows.RemoveAt(iIndex);
}