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. Advertisements

  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. Advertisements

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. Hazzard
    Replies:
    2
    Views:
    752
    Yan-Hong Huang[MSFT]
    Jul 23, 2003
  2. =?Utf-8?B?Q2hyaXM=?=
    Replies:
    3
    Views:
    14,232
    Peter Blum
    Mar 30, 2005
  3. Jay

    Rich TextBox / HTML TextBox

    Jay, Apr 28, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    15,946
    Steve C. Orr [MVP, MCSD]
    Apr 29, 2005
  4. Jay

    Rich TextBox / HTML TextBox

    Jay, Apr 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    683
    =?Utf-8?B?TG9yZW5j?=
    Apr 28, 2005
  5. Imran Aziz
    Replies:
    2
    Views:
    11,709
    Imran Aziz
    Sep 5, 2005
  6. smiley

    can not resize the textbox for PDA

    smiley, Jul 7, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    237
    smiley
    Jul 7, 2003
  7. John Coffey
    Replies:
    1
    Views:
    203
    kapilp
    Mar 29, 2006
  8. Replies:
    2
    Views:
    1,455
    Adrienne
    Feb 13, 2005
Loading...