我真的可以基于数据删除数据网格视图吗?例如,有一个名为food的列标题,在这个'food'列中有许多'breed'。所以,我想做的是,我想删除所有包含这个品种的行。
tbl_recipeheader.Rows.Add(btn);
tbl_recipeheader.Rows[1].Cells[1].Value = 1;
tbl_recipeheader.Rows[1].Cells[2].Value = 1;
tbl_recipeheader.Rows[1].Cells[3].Value = Breed;
tbl_recipeheader.Rows[1].Cells[4].Value = This Is Description;
tbl_recipeheader.Rows[1].Cells[5].Value = 100;
tbl_recipeheader.Rows[1].Cells[6].Value = DateTime.Now;
tbl_recipeheader.Rows[1].Cells[7].Value = Employee 1;
tbl_recipeheader.Rows[1].Cells[8].Value = A;
tbl_recipeheader.Rows[2].Cells[1].Value = 2;
tbl_recipeheader.Rows[2].Cells[2].Value = 2;
tbl_recipeheader.Rows[2].Cells[3].Value = Breed;
tbl_recipeheader.Rows[2].Cells[4].Value = This Is Description 2;
tbl_recipeheader.Rows[2].Cells[5].Value = 200;
tbl_recipeheader.Rows[2].Cells[6].Value = DateTime.Now;
tbl_recipeheader.Rows[2].Cells[7].Value = Employee 2;
tbl_recipeheader.Rows[2].Cells[8].Value = A;