在按钮上单击如何在Radgrid中获取控件ID [英] on button click how to get control id inside Radgrid
本文介绍了在按钮上单击如何在Radgrid中获取控件ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
喜欢
标签lbl = RadGrid2.MasterTableView.FindControl(SoftwareName)作为标签;
like
Label lbl = RadGrid2.MasterTableView.FindControl("SoftwareName") as Label;
推荐答案
protected void Button1_Click(object sender,EventArgs e)
{
foreach(GridDataItem item在ControlSettGrid.MasterTableView.Items)
{
TextBox tx = item.FindControl(nfontcolor)as TextBox
}
}
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridDataItem item in ControlSettGrid.MasterTableView.Items)
{
TextBox tx=item.FindControl("nfontcolor") as TextBox
}
}
这篇关于在按钮上单击如何在Radgrid中获取控件ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文