在codebehind中的ItemDataBind事件中添加
if (e.Item.ItemType == ListItemType.EditItem)
{
((TextBox)e.Item.Cells[1].Controls[0]).Width = Unit.Pixel(XX);
((TextBox)e.Item.Cells[2].Controls[0]).Width = Unit.Pixel(XX);
}
if (e.Item.ItemType == ListItemType.EditItem)
{
((TextBox)e.Item.Cells[1].Controls[0]).Width = Unit.Pixel(XX);
((TextBox)e.Item.Cells[2].Controls[0]).Width = Unit.Pixel(XX);
}
http://expert.csdn.net/Expert/topic/1112/1112299.xml?temp=.1279566