Set Panel width

D

David C

I am using the asp:panel control to create scrollable GridViews, etc. I
would like to dynamically set the width to 105% of the GridView width rather
than the percentage of the page width. Does anyone know how to do that? i
couldn't find anything in Panel.Width property settings. Thanks.

David
 
G

Gregory A. Beamer

I am using the asp:panel control to create scrollable GridViews, etc.
I would like to dynamically set the width to 105% of the GridView
width rather than the percentage of the page width. Does anyone know
how to do that? i couldn't find anything in Panel.Width property
settings. Thanks.

Remove height and width and use CSS styles on the panel.
 
D

David C

Gregory A. Beamer said:
Remove height and width and use CSS styles on the panel.

Gregory,
Can you give me an example? I am unsure how that would be any different
since the width of the GridView varies based on the length of data in the
columns. Thanks.

David
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top