我想在按钮点击时调用GridViewRowEventArgs方法, [英] i want to call a GridViewRowEventArgs method on button click,
本文介绍了我想在按钮点击时调用GridViewRowEventArgs方法,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,我的方法如下: -
Public Sub Save(ByVal sender As Object,ByVal e As GridViewRowEventArgs)
---我的代码
结束子
i想要点击按钮调用此方法。
我该怎么做。
解决方案
每个Control都会发送它自己的事件。
例如一个Button don'从GridView引发一个事件。
也许 - 你可以创建UserControls并在里面组合函数。
或者你可以自定义一个Control。
它可以帮助你...
http://forums.asp.net/t/1291396.aspx?How+to+call+gridview+rowdatabound+事件+在+按钮+单击 [ ^ ]
Sir, i have a method like :-
Public Sub Save(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
--- my code
End Sub
i want to call this method on button click.
how can i do it.
解决方案
Each Control delivers it's own Events.
For example a Button don't raise an Event from a GridView.
Perhaps - you could create UserControls and combine functions inside.
Or you could customize a Control.
it may help you...
http://forums.asp.net/t/1291396.aspx?How+to+call+gridview+rowdatabound+event+in+button+click[^]
这篇关于我想在按钮点击时调用GridViewRowEventArgs方法,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文