DATAGRID在编辑模式问题!! DATAGRID在编辑模式下的宽度怎么设定?还有编辑模式下的输入框的宽度怎么控制?哪位大哥帮忙解决!!谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在模板列中放入textbox就可以控制输入框的宽度了。 ctype(datagrid.items(i).cell(0).controls(0),textbox).width=unit.pixel(100) 在ItemDataBound事件中: if((e.Item.ItemIndex==DataGrid1.EditItemIndex)&&(e.Item.ItemIndex>=0)) { for(int i=3;i<DataGrid1.Columns.Count-1;i++) { ((TextBox)e.Item.Cells[i].Controls[0]).Width=Unit.Parse("100%"); } } <headerstyle height="值" width="值"></headerstyle><itemstyle height="值" width="值"></itemstyle> <itemtemplate> <headerstyle height="值" width="值"></headerstyle> <itemstyle height="值" width="值"></itemstyle></itemtemplate> 关键是要设置模板列在模板列里加入textbox或list或check然后再设置这些控件的宽度 关于webpart中的用户控件,急!急!急! 简单的循环 输出Table。 for逻辑的问题 怎样显示带有<script>的内容?谢谢! 如何取得动态生成的控件里的值? 请孟子等高手帮忙, 在两层嵌套DataGrid中, 如何对子DataGrid中的DropDownList 绑定数据 ? 急急 求1个超简单的javascipt 求救asp.net代码的执行顺序问题???不明白! 关于分组输出 2.0 母版页 怎么实现用DIV 来分块! 急 谢谢 正则表达式 请问mspx和aspx有什么区别?
{
for(int i=3;i<DataGrid1.Columns.Count-1;i++)
{
((TextBox)e.Item.Cells[i].Controls[0]).Width=Unit.Parse("100%");
}
}
<itemstyle height="值" width="值"></itemstyle>
<headerstyle height="值" width="值"></headerstyle>
<itemstyle height="值" width="值"></itemstyle>
</itemtemplate>
在模板列里加入textbox或list或check
然后再设置这些控件的宽度