Gridview控件的DataKeyNames 里的也设置主键了pc_id
按钮的 CommandName 也设置了 Delete了好像根本没有执行到GridView1_RowDeleting
我下了断点 根本不跳回来只显示Internet Explorer 无法显示该网页我只是想移除 GridView上的一行数据 没有操作数据库的这样移除对吗
GridView1.DeleteRow(e.RowIndex);哎 作业怎么也做不出来 购物车 功能 只能做这些笨方法来实现了
按钮的 CommandName 也设置了 Delete了好像根本没有执行到GridView1_RowDeleting
我下了断点 根本不跳回来只显示Internet Explorer 无法显示该网页我只是想移除 GridView上的一行数据 没有操作数据库的这样移除对吗
GridView1.DeleteRow(e.RowIndex);哎 作业怎么也做不出来 购物车 功能 只能做这些笨方法来实现了
解决方案 »
- 帮帮忙,请问ComponetArt中的Tabstrip如何设置他的选项卡为选中?
- C#中datagridview.rows.add()方法的疑惑
- 如何添加ReportControl.dll的引用?
- C#中怎么把oralce数据库中的数据导入*.dbf文件中
- 初学:oledb访问excel,需要安装office吗?
- [求助]无效的ResX输入,因为使用了ImageList
- AspNetForms安装后为什么控件都出错啊
- 用C#如何判断本机是否联入互联网
- 高手指导,怎么创建类似.net中的toolbox
- 学习C#那本书比较好?
- OracleDataReader遇到的非常奇怪的问题
- 请教C#中ListView设置OwnerDraw=true;View=Detail后,不能进入DrawSubItem事件?
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int index=e.RowIndex ;
GridViewRow gvr=GridView1.Rows[index];
str1 = gvr.Cells[1].Text;
}