resize textbox

Discussion in 'ASP .Net Datagrid Control' started by chris, Apr 13, 2004.

  1. chris

    chris Guest

    hi
    how can i resize the textbox control in a datagrid

    thanks
     
    chris, Apr 13, 2004
    #1
    1. Advertising

  2. chris

    Jos Guest

    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
     
    Jos, Apr 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S. Justin Gengo
    Replies:
    0
    Views:
    553
    S. Justin Gengo
    Jul 16, 2003
  2. Hazzard
    Replies:
    2
    Views:
    569
    Yan-Hong Huang[MSFT]
    Jul 23, 2003
  3. smiley

    can not resize the textbox for PDA

    smiley, Jul 7, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    159
    smiley
    Jul 7, 2003
  4. John Coffey
    Replies:
    1
    Views:
    135
    kapilp
    Mar 29, 2006
  5. Replies:
    2
    Views:
    1,280
    Adrienne
    Feb 13, 2005
Loading...

Share This Page