Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Dynamically set the width of the grid by percentage

Reply
Thread Tools

Dynamically set the width of the grid by percentage

 
 
eagle
Guest
Posts: n/a
 
      12-01-2005
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%"



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically Resize Gridview Width Property (NOT Column Width) Hartman_Ralph@Hotmail.com ASP .Net 0 06-02-2009 03:59 PM
set div width to remaining width of the browser Steve Richter ASP .Net 2 06-15-2007 06:40 PM
Percentage width for cells in web Datagrid Elizabeth ASP .Net Datagrid Control 1 07-20-2006 08:40 PM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
Absolute width vs. Percentage Todd Cary HTML 4 09-04-2003 10:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57