首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

DataGrid-剔除单条事件

2012-11-03 
DataGrid----删除单条事件??? protected void dgProductCommentList_DeleteCommand(object source, DataGr

DataGrid----删除单条事件

?

?

? protected void dgProductCommentList_DeleteCommand(object source, DataGridCommandEventArgs e)
??? {
??????? //--删除单条事件
??????? string deleteIds = "";
??????? deleteIds = dgProductCommentList.DataKeys[e.Item.ItemIndex].ToString();? //--得到DataKey的字段
??????
??????? pc.DeleteMoreProductComment(deleteIds, dgProductCommentList);
??????? pc.BindProductCommentToDataGrid(dgProductCommentList, "");? //--重新绑定
??? }

热点排行