在以下情况下触发哪些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,LinkButton或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事件:
发布评论