If you have tried to set the width of a control (like a table) in code, you probably have received an error since it’s expecting an integer/unit. However, it’s very possible to set the width as a percentage, and probably a little easier than you would think.

and here’s how you do it:

 tbl.Width = Unit.Percentage(100)