Resize whole datagrid, not only columns!

T

tasiekk

I need to know how i can resize datagrid on a page when user will
resize web browser window or maximize this window. Resizeing normal DIV
is simple - expression but i dont know how to resize more complicated
control like datagrid.
 
G

Guest

The datagrid, from a browser's standpoint is just an html TABLE
you can always just set its width to be some persentage (e.g. 100%) and let
the browser take care of it, or you can set its height and height style
attributes via javascript
 
T

tasiekk

David Jessee napisal(a):
The datagrid, from a browser's standpoint is just an html TABLE
you can always just set its width to be some persentage (e.g. 100%) and let
the browser take care of it, or you can set its height and height style
attributes via javascript

I made grid layout panel width
expression(parseInt(body.clientWidth)*0.98)
and a datagrid width i set up for 98%. Both controls start in same
place but their width are not same! ... they end in diffrent places :(
When i set up datagrid width for 100% datagrid width isnt a whole web
browser width, its still even shorter than panel. What i do wrong ??
 
G

Guest

When you say 100% the browser interprets that as being 100% (or 98%) of the
container that holds the object (what the datagrid is inside of).

Are you using absolute positioning?
 
G

Guest

Just re-read your post....if you can, stay away from the Grid Layout
(absolute positioning). It creates all sorts of problems like this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top