Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Change column width in code behind
posted

 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.