Dynamically set the width of the grid by percentage

Discussion in 'ASP .Net Datagrid Control' started by eagle, Dec 1, 2005.

  1. eagle

    eagle Guest

    How do you set the width of a grid to 100%. I can do it in the html code,
    but I want to do it dynamically, and it tells me it cannot convert units to
    a string: This is what I tried.

    dg.width=100% or dg.width="100%"
     
    eagle, Dec 1, 2005
    #1
    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:
    791
    Bruce Barker
    Oct 10, 2005
  2. Todd Cary

    Absolute width vs. Percentage

    Todd Cary, Sep 4, 2003, in forum: HTML
    Replies:
    4
    Views:
    11,348
    John W.
    Sep 4, 2003
  3. Steve Richter
    Replies:
    2
    Views:
    7,936
    Steve Richter
    Jun 15, 2007
  4. Replies:
    0
    Views:
    941
  5. Elizabeth

    Percentage width for cells in web Datagrid

    Elizabeth, Jul 19, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    176
    addup
    Jul 20, 2006
Loading...

Share This Page