Re: Setting Proportional Width of Bound GridView



I'm afraid there is no way how to use proportional size (%) and scrollbars
together:( I have tried a lot and i wasn't a bit succesfull so i have
written javascript code which recalculate the size and set fixed width of
panel

Lukas

"Andrew Hayes" <AndrewHayes@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:O4VrTWsDHHA.2356@xxxxxxxxxxxxxxxxxxxxxxx
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:Panel 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:Panel 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



.



Relevant Pages

  • Re: newbie form question
    ... In this case Panel will follow the parent (user control) size. ... If I resize the panel itself, the scrollbars automatically ...
    (microsoft.public.dotnet.framework.windowsforms)
  • newbie form question
    ... This user control has a panel with controls in it (a couple of textboxes ... If I resize the panel itself, the scrollbars automatically ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: why people dont like web apps with menus like usual apps? was: Re: how does www.windowsupdate.co
    ... a visit with any other browser is greeted with a rather ... It's got scrollbars all over the place when opened in my preferred ... When designing a web page, one needs to be more generic: ... in terms of making specific visual widgets appear in specific places, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Setting up Apache on RH8 - Update
    ... Rock wrote: ... > If I put http://localhost in the browser I still get a panel that wans ... When I get out of that panel, ... I cannot guess how you have your apache configured. ...
    (alt.os.linux.redhat)
  • Re: customising scroll bars in java script drop down menu
    ... The colorized scrollbars are proprietary to IE/PC. ... The scrollbars belong to the body of the page in browser quirks mode, ... you may have defined them for the body tag, not the html tag. ...
    (microsoft.public.frontpage.client)