Live Chat Icon For mobile
Live Chat Icon

How do I change the width of the Textboxes created for edit-mode of a Datagrid?

Platform: ASP.NET| Category: DataGrid

<asp:DataGrid id='DataGrid1' runat='server' AutoGenerateColumns='False'>
<Columns>
<asp:TemplateColumn HeaderText='ProductName'>
  	  <ItemTemplate>
		    <%#DataBinder.Eval(Container.DataItem, 'ProductName').ToString()%>
	  </ItemTemplate>
	  <EditItemTemplate>
		    <asp:Textbox runat='server' width='450' maxlength='450'/>
	  </EditItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.