Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > resize textbox

Reply
Thread Tools

resize textbox

 
 
chris
Guest
Posts: n/a
 
      04-13-2004
hi
how can i resize the textbox control in a datagrid

thanks
 
Reply With Quote
 
 
 
 
Jos
Guest
Posts: n/a
 
      04-14-2004
chris wrote:
> hi,
> how can i resize the textbox control in a datagrid?
>
> thanks


This is the easiest way:
Convert all columns into BoundColumns and turn AutoGenerateColumns off.
This creates an EditItemTemplate for each column. There you can set the
width.
You can use the Property Builder, or you can use the following code:
<asp:Textbox style="width:40px" ....>

--

Jos


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dumber Problem (Question) - Resize the area for a textbox, label... etc. Need Help ASAP!!. John Coffey ASP .Net Mobile 1 03-29-2006 08:26 PM
How to resize all images sizes and coordinates of the images on resize browser rams.kakara@gmail.com ASP General 2 02-13-2005 09:03 AM
runat="server"....a simple html textbox or a webform server textbox...that is the question. Hazzard ASP .Net 2 07-23-2003 07:32 AM
Re: VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail??? S. Justin Gengo ASP .Net 0 07-16-2003 06:51 PM
can not resize the textbox for PDA smiley ASP .Net Mobile 0 07-07-2003 11:34 AM



Advertisments