Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > A way to dynamically resize the datagrid's frame height?

Thread Tools

A way to dynamically resize the datagrid's frame height?

Posts: n/a
We are using the Microsoft DataGrid control provided in ASP.NET 1.1.

Is there any way to make the datagrid's frame taller after the HTML is
rendered in the browser?

The original height is set in styles.css:

overflow: auto;
border: #00125a thin solid;
height: 400px;

and is fine for 1024x768, but looks too small when larger resolutions
are in use.

I've added an icon whose onclick javascript should increase the grid's

onclick="dg=getElementById('datagrid1'); datagrid1.height='675px';"

Nothing happens.

Have tried various combinations of syntax on these attributes, all to
no avail:


When I use a custom function to display the current properties:

datagrid1.height is reported as a null value
datagrid1.width is reported as a null value
datagrid1.scrollheight is 3069
datagrid1.clientheight is 3069 is reported as an [object]
--> How to look at the sub-attributes? I tried[1]
and several variations, to no avail.

Thank you in advance!


Reply With Quote

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
How to get PAN newsreader to resize photos to fit in the body frame FJ Chaney Digital Photography 31 10-10-2007 12:56 AM
Resize Frame wardemon ASP .Net 2 11-21-2006 02:23 PM
How to prevent Tkinter frame resize? Python 5 04-22-2005 08:52 PM
How to resize all images sizes and coordinates of the images on resize browser ASP General 2 02-13-2005 09:03 AM
Please...Applet frame resize problem Kevin Java 10 12-12-2003 06:11 AM