Setting GridView width to %

D

David C

I am emailing a GridView and setting its Width property to 900 before
rendering and it works great. However, when the rendering is done, I want to
reset the Width back to 95% like it was. When I try to do that it throws an
error "Conversion from string "95%" to type 'Integer' is not valid."
My code causing the error is below. Is there a work around? Thanks.

David

gvWeeklyPlanner.Width = "95%"
 
D

David C

The problem with this idea is that it will then be 95% of 900 (855) instead
of 95% of the screen width.

-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,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top