本文介绍了asp.net网格RowDeleting事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有问题.
在我的页面上有一个网格,其中包含诸如
的列

hello ,

I have a problem .
At my page there is a grid with columns like

<asp:CommandField ButtonType="Image"  NewImageUrl="~/images/new1.JPG" ShowInsertButton="True" />
        <asp:CommandField ButtonType="Image"  EditImageUrl="~/images/update1.JPG" ShowEditButton="True" />
        <asp:CommandField ButtonType="Image"  DeleteImageUrl="~/images/delete1.JPG" ShowDeleteButton="True" />




我想使用RowCommand事件.对于Insert&更新过程
但不足以删除.
如果我不添加RowDeleting事件,则我的页面在尝试删除行时会在运行时出错.当我添加RowDeleting事件(即使它为空)时
页面工作正常.
当我有ShowDeleteButton时,是否必须添加RowDeleting事件.




I want to used RowCommand event.It is ok for Insert & Update process
but not enough for Delete.
If I dont add RowDeleting event my page has error at runtime when trying delete a row.When I add RowDeleting event (even if it is empty)
page works fine.
Do I have to add RowDeleting event when I have ShowDeleteButton .

推荐答案



这篇关于asp.net网格RowDeleting事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 03:16