Setting GridView width to %

  • Thread starter Thread starter David C
  • Start date Start date
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%"
 
The problem with this idea is that it will then be 95% of 900 (855) instead
of 95% of the screen width.

-David
 
Back
Top