如何在GridView的RowDeleting事件中获得当前行的DataKey值
//删除店铺之前,先把相关的分类数据从数据库中删除
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int dietStoreID = Convert.ToInt32(e.Keys[0]);
DietStoreClassDetails.DeleteDietStoreClass(dietStoreID);
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int dietStoreID = Convert.ToInt32(e.Keys[0]);
DietStoreClassDetails.DeleteDietStoreClass(dietStoreID);
}