您的位置:首页 > 其它

如何在GridView的RowDeleting事件中获得当前行的DataKey值

2007-11-02 11:46 453 查看
//删除店铺之前,先把相关的分类数据从数据库中删除

protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)

{

int dietStoreID = Convert.ToInt32(e.Keys[0]);

DietStoreClassDetails.DeleteDietStoreClass(dietStoreID);

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐