在以下条件下触发哪些GridView事件:

编程入门 行业动态 更新时间:2024-10-25 00:36:17
本文介绍了在以下条件下触发哪些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事件:

本文发布于:2023-10-26 12:05:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530087.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:条件下   事件   GridView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!