dgrInfo的ItemDataBound事件中:
if(e.Item.ItemType=="Footer")
{
TextBox te=e.Item.FindControl("TextBox1");
......
}
if(e.Item.ItemType=="Footer")
{
TextBox te=e.Item.FindControl("TextBox1");
......
}
解决方案 »
- List<>泛型类型的转换,我真搞不清白啊。。
- 未能加载文件或程序集
- 输出流的问题
- 关于数组的内容赋给字符串(asp.net,C#)
- !!!!!急,急,急,急,急!!!请问我这个拼写的语句哪里错了啊?
- 数据读出后,需要用Split来把列Namek中的|分裂了,再绑定到datagrid中,请教~
- 大家好,小弟急死了!对一个特定文件夹中的一些文件,根据创建日期排序。怎么弄啊?
- 水晶报表, 打印或转为EXCEL或PDF时, 显示数据库连接页面?
- web服务器老报链接错误
- 疯狂郁闷中。。。。。关于ListBox值读出,请进看LOOK一下!(在线等)
- 求符合小数的正则表达式写法!!
- 熟悉正则表达的高手指点:如何替换字符串中的回车符
foreach (DataGridItem item in DataGrid1.Controls[0].Controls)
{
if ( item.ItemType == ListItemType.Footer )
{
DropDownList drop = ( DropDownList )item.FindControl( "DropDownList2" ); // 代替成你要找的控件
drop.DataSource = al;
drop.DataBind();
break;
}
}