How to increase or decrease the width of the column in datagrid

Discussion in 'ASP .Net Datagrid Control' started by Sivaraman.S, Oct 18, 2004.

  1. Sivaraman.S

    Sivaraman.S Guest

    Hi friends,

    How to increase or decrease the width of the column in datagrid?

    regards,
    Sivaraman.S
     
    Sivaraman.S, Oct 18, 2004
    #1
    1. Advertising

  2. Sivaraman.S wrote:
    > How to increase or decrease the width of the column in datagrid?


    You can set the Width property of the column in a DataGrid explicitly:

    <asp:DataGrid ...>
    <Columns>
    <asp:BoundColumn ... Width="100px" />
    ...
    </Columns>
    </asp:DataGrid>



    --

    Scott Mitchell

    http://www.4GuysFromRolla.com

    * When you think ASP.NET, think 4GuysFromRolla.com!
     
    Scott Mitchell [MVP], Oct 18, 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. AndrewF
    Replies:
    1
    Views:
    810
    Bruce Barker
    Oct 10, 2005
  2. Charleees
    Replies:
    2
    Views:
    8,246
    Eliyahu Goldin
    Jun 20, 2006
  3. dmbuso

    Increase Gridview Column Width

    dmbuso, Aug 24, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    605
    Munna
    Aug 25, 2008
  4. Carl Howarth

    DG Column Width vs Table Column Width

    Carl Howarth, Oct 22, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    277
    Eliyahu Goldin
    Oct 24, 2004
  5. dmbuso

    Increase Width of GridView Column

    dmbuso, Aug 24, 2008, in forum: ASP General
    Replies:
    2
    Views:
    184
    dmbuso
    Aug 24, 2008
Loading...

Share This Page