set autosize of datagrid to no

Discussion in 'ASP .Net' started by raymond chiu, Dec 29, 2005.

  1. raymond chiu

    raymond chiu Guest

    Dear all,

    How can I set the datagrid autosize properties to be zero? as I don't find
    this properties in datagrid.
    The situation is that I have set the datagrid width to be 200px but when I
    auto create columns in datagrid and it occur the whole width of the page in
    run time due to more columns inserted than design time.

    Any ways to do?
     
    raymond chiu, Dec 29, 2005
    #1
    1. Advertising

  2. You probably want to turn off autogenerate of columns and use only the
    columns you want and need. Even if you want all of the columns, this will
    allow you to set the column widths.
    --
    Christopher A. Reed
    "The oxen are slow, but the earth is patient."

    "raymond chiu" <> wrote in message
    news:O%23Xr$...
    > Dear all,
    >
    > How can I set the datagrid autosize properties to be zero? as I don't find
    > this properties in datagrid.
    > The situation is that I have set the datagrid width to be 200px but when I
    > auto create columns in datagrid and it occur the whole width of the page
    > in run time due to more columns inserted than design time.
    >
    > Any ways to do?
    >
    >
     
    Christopher Reed, Dec 29, 2005
    #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. Dennis Strickland via .NET 247

    How to autosize the row heigth in a Datagrid

    Dennis Strickland via .NET 247, Jun 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,378
    Uri Dor
    Jun 15, 2004
  2. Ryou kaihou
    Replies:
    1
    Views:
    420
    Eric Moreau
    Jun 14, 2007
  3. Ryou kaihou
    Replies:
    1
    Views:
    186
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jun 14, 2007
  4. Ryou kaihou
    Replies:
    0
    Views:
    143
    Ryou kaihou
    Jun 14, 2007
  5. Ryou kaihou
    Replies:
    0
    Views:
    141
    Ryou kaihou
    Jun 14, 2007
Loading...

Share This Page