1.http://expert.csdn.net/Expert/topic/1754/1754464.xml?temp=.58587282.写DataGrid1_ItemCreated事件
{
ListItemType lit_footer=e.Item.ItemType;
//如果是编辑行
if (lit_footer==ListItemType.EditItem)
{
//设置编辑的TextBox宽度 4代表编辑框所在列
((TextBox)(e.Item.Cells[4].Controls[0])).Width=Unit.Pixel(100); }
}
{
ListItemType lit_footer=e.Item.ItemType;
//如果是编辑行
if (lit_footer==ListItemType.EditItem)
{
//设置编辑的TextBox宽度 4代表编辑框所在列
((TextBox)(e.Item.Cells[4].Controls[0])).Width=Unit.Pixel(100); }
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货