在以下条件下触发哪些GridView事件: [英] Which GridView Events are fired under following conditions:

查看:68
本文介绍了在以下条件下触发哪些GridView事件:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下情况下触发哪些GridView事件:

1.用户单击ItemTemplate中的按钮。

2.用户单击FooterTemplate中的按钮。

3.用户单击HeaderTemplate中的按钮。

4.用户单击EditItemTemplate中的按钮。



Q.什么时候是RowCommand事件被解雇了吗?





我可能已经知道上述问题的答案,但只是想澄清一些困惑和怀疑。上述问题的答案对我的理解非常有帮助。

Which GridView events are fired when :
1. User clicks a button in ItemTemplate.
2. User clicks a button in FooterTemplate.
3. User clicks a button in HeaderTemplate.
4. User clicks a button in EditItemTemplate.

Q. When is RowCommand Event is fired?


I probably already know the answers to the above questions, but just want to clear up some confusions and doubts. Answers to the above questions will be very helpful for me for my clear understanding.

推荐答案

参考 -



1. GridView.RowCommand Event [ ^ ]。

Refer -

1. GridView.RowCommand Event[^].
引用:

按钮时发生单击GridView控件。

Occurs when a button is clicked in a GridView control.

2。另请查看如何:响应GridView控件中的按钮事件 [ ^ ]。



因此,1,2,3,4的答案也意味着 RowCommand 事件,如果你正在使用按钮(ButtonField,Button,LinkBut​​ton或ImageButton),你有一个自定义命令。

2. Also check How to: Respond to Button Events in a GridView Control[^].

So, the answers to 1, 2, 3, 4 also implies to RowCommand event, if you are using the Buttons(ButtonField, Button, LinkButton, or ImageButton) inside them and you have a custom Command.


这篇关于在以下条件下触发哪些GridView事件:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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