asp.net与RowDeleteing和RowDeleted之间的区别 [英] difference between RowDeleteing and RowDeleted asp.net

查看:343
本文介绍了asp.net与RowDeleteing和RowDeleted之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Pls Explain with example for the following question using C#

1)difference between RowDeleteing and RowDeleted
2)difference between PageindexChanging and PageindexChanged.

推荐答案

RowDeleting在单击行的删除"按钮时,但在GridView控件删除该行之前发生.
单击行的删除"按钮时,但在GridView控件删除该行之后,发生RowDeleted.


PageIndexChanging在单击一个分页器按钮时,但在GridView控件处理分页操作之前发生.

PageIndexChanged在单击某个分页器按钮时,但在GridView控件处理分页操作之后发生.

参考:
http://msdn.microsoft.com/en-us/library/hf8xwy0t.aspx [ ^ ]
RowDeleting Occurs when a row''s Delete button is clicked, but before the GridView control deletes the row.

RowDeleted Occurs when a row''s Delete button is clicked, but after the GridView control deletes the row.


PageIndexChanging Occurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation.

PageIndexChanged Occurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation.

ref:
http://msdn.microsoft.com/en-us/library/hf8xwy0t.aspx[^]


我认为它们很容易说明:

RowDeleting 事件在即将删除行之前触发.删除该行后,将触发 RowDeleted 事件.

PageIndexChanging PageIndexChanged 事件也是如此.

-Dom
I think they are pretty self explanatory:

The RowDeleting event fires just before a row is about to be deleted. Once this row has been deleted, the RowDeleted event is fired.

The same goes for PageIndexChanging and PageIndexChanged events.

-Dom


检查这些链接.

RowDeleteing和RowDeleted之间的区别 [ PageindexChanging和PageindexChanged之间的差异 [
Check these links.

difference between RowDeleteing and RowDeleted[^]


difference between PageindexChanging and PageindexChanged[^]


这篇关于asp.net与RowDeleteing和RowDeleted之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆