DataGridItem represents each row in the DataGrid (whose first child is a Table object), it contains all the controls as indicated in the template, tryDataGridItem dgi = DataGrid1.Items[0];
foreach (Control c in dgi.Controls)
{
Response.Write(c.GetType().Name);
}
foreach (Control c in dgi.Controls)
{
Response.Write(c.GetType().Name);
}
解决方案 »
- 求正则表达式。。。。。
- 字符串中替换某一字符
- 真心求帮忙,新手。我想在GridView里实现用CheckBox来控制TextBox控件的编辑功能。
- 怎么在统计界面上有几个gridview啊方法,急求
- 请问什么是W3C啊?
- js怎样控制变量里字体的大小?
- 只有 assignment、call、increment、decrement 和 new 对象表达式可用作语句
- 偶想开发一个ie插件,象google搜索工具栏那样子的一个东东,哪位老大给些资料啊?谢谢!
- 数据绑定在下拉框,显示不出来 :(~~~~~~~~~~~~~~
- 为何ASPNET_WP突然占用极大的资源
- 数据库查询中中文column的问题?
- 求在aspx页面中弹出新的页面的控件
foreach (TableCell tc in dgi.Cells)
{
foreach (Control c in tc.Controls)
{
Response.Write(c.GetType().Name);
}
}
他包含TableCell,向里是各种列或是自己添加的控件