A
Andrew Hayes
In a C#.NET web page, I'm using the GridView control bound to a
ObjectDataSource and the binding and data reading works fine. It auto
generates the columns from the SelectMethod and makes the drid wide enough
to show them all.
The problem comes when I have an asp
anel control around the grid (to
generate scrollbars if the GridView is larger than the screen size).
It always make the encompassing control as wide as the GridView.
Now, I was under the assumption that if a Table element has a width of
"100%", that applies to the browser size, not the size of the content of the
table... Maybe that is my mistake.
If I set the Panel width explicitly, it all works OK, but then when I resize
the browser window, the panel doesn't resize (of course).
Does anyone know of a simple way to size an asp
anel element so that it is
sized to the browser size, while the contents of the panel retain their own
fixed size (thereby forcing the creation of the scrollbars)?
TIA
ObjectDataSource and the binding and data reading works fine. It auto
generates the columns from the SelectMethod and makes the drid wide enough
to show them all.
The problem comes when I have an asp
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
generate scrollbars if the GridView is larger than the screen size).
It always make the encompassing control as wide as the GridView.
Now, I was under the assumption that if a Table element has a width of
"100%", that applies to the browser size, not the size of the content of the
table... Maybe that is my mistake.
If I set the Panel width explicitly, it all works OK, but then when I resize
the browser window, the panel doesn't resize (of course).
Does anyone know of a simple way to size an asp
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
sized to the browser size, while the contents of the panel retain their own
fixed size (thereby forcing the creation of the scrollbars)?
TIA