如何在linkbutton命令参数中调用gridview [英] how to call gridview inside a linkbutton command arguments
本文介绍了如何在linkbutton命令参数中调用gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Linkbutton commandeventargs如下
protected void lnkCbndate_click( object sender,CommandEventArgs e)
{
如何调用gridview 链接按钮commandEventargs
}
for that怎么样我在链接按钮命令事件args中调用gridview
请帮助我。
解决方案
首先向下倾斜事件的按钮
LinkButton btn =(LinkButton)sender;
GridViewRow row =(GridViewRow)btn.NamingContainer;
使用find控件选项你可以在网格视图中找到任何控件
访问内部的不同控件一个GridView控件 [ ^ ]
Linkbutton commandeventargs as follows
protected void lnkCbndate_click(object sender, CommandEventArgs e)
{
how to call gridview in link button commandEventargs
}
for that how can i call gridview in link button command event args
please help me.
解决方案
First downcast the event of the button
LinkButton btn= (LinkButton)sender; GridViewRow row = (GridViewRow)btn.NamingContainer;
using find control option you can find any control with in grid view
Accessing the different controls inside a GridView control[^]
这篇关于如何在linkbutton命令参数中调用gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文