Dynamically resizing of text box
Hi,
My code is
<ItemTemplate>
<asp:TextBox id="txtNote" TextMode="MultiLine" wrap="true" Columns="30" Rows="3" runat="server" Font-Names="Verdana" Font-Size="XX-Small"></asp:TextBox>
</ItemTemplate>
My constraint is that I dont want to fix the colums and rows by hardcoding.I want that it should dynamically resize itself.
Re: Dynamically resizing of text box
in DataBound event
find the text box in Grid Row by
Code:
TextBox box = e.FindControl("txtNote") as TextBox;
and set its new values by
Code:
box.Height = 50;
box.Width = 100;