I have a column in an infragistics grid (ultrawebgrid) that has its width defined as 24%. I have a print function in my code behind and I want to change the width of this column to 18%. I tried using the code below to do this, but when I debugged I noticed that it changed the width to 'pixel' instead of 'percentage'.
Me.UltraWebGrid1.Columns(2).Width = "18"
The only way to get it to the correct width was to use the code below (as a pixel) Me.UltraWebGrid1.Columns(2).Width = "110"
How do I set the width in the code behind so that it stays a percentage? Thanks.
I figured out the solution. I am using the following:
UltraWebGrid1.Columns(2).Width = Unit.Percentage(18)