Keep panel from resizing

G

Guest

I am using a panel inside an asp.net 2.0 page so that I can have the
scrolling capabilities. Inside the panel I have a datagrid that I would like
to stay within a certain area. On the initial page load the panel works as
expected but when I load the datagrid the panel expands off the side of the
page to accomidate the new grid size. Does anyone know how to prevent this
without using an absolute size. The panel basically takes up the right side
of the page so if the page is expanded I would like to allow the panel to
expand.

Thanks for any insight,
Tim
 
G

Guest

Tjfds,
try this it might be what your looking for: Set the panel.width to a
percent like 85% and panel.scrollbars to auto or horizontal.

Good Luck
DWS
 
G

Guest

Thanks for the reply DWS, I have tried multiple percentages and table layouts
and everytime that the datalist is filled the panel jumps to whatever size
the datalist is wide (off the screen). I have basically gave up and decided
to set the panel at a certain width in pixels. This works but if you have a
large monitor you are limited to whatever size I deem average. Anyway,
thanks. Tim
 

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

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top