I'm creating a report and want to set the column widths on an iGrid to a specific size, but can't find where to do it. There are only two columns in this particular grid and they just take up 50% of the page width each, but I wand to be able to set the first column to be much narrower.
How do I do it?
Knew it must be something really obvious.. thanks
You should just be able to set the Width on the IGridColumn directly:
IGridColumn col = grid.AddColumn();col.Width = new FixedWidth(100f);col = grid.AddColumn();col.Width = new RelativeWidth(70f);
I used the two different types of widths to illustrate the options that you have. RelativeWidth will use a percentage of the remaining width available to the object (i.e. PageWidth - 100).
-Matt