Click to See Complete Forum and Search --> : DataGrid - Editing a TextBox and its Size


bharadwajrv
June 23rd, 2004, 12:51 AM
Hi,

i'm using the datagrid to display the content from the DB.
the datagrid also has "Edit" and "Delete" option.

While selecting the "Edit" option, a textbox is displayed, of default length, due to which my screen design is distrubed.

I want to control the size of this text box..
I wanted a textbox width which can hold 2 char in it.


how to do it.

thanks in adv.

Venu

evaleah
June 29th, 2004, 09:51 AM
Add a width definition to your textbox declaration.

<asp:textbox id="Textbox1" runat="Server" width="10" />

10 might not be exactly the right width. You might want to play with that.

luckyv
January 11th, 2006, 10:41 AM
hi,

In edit item template of you template column you can change the properties of your textbox which will be displayed in edit mode.


lucky