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
1600
How to get column width stay in fixed size?
posted

I have added a new column to a grid during Grid_InitializeLayout such as

      Grid.DisplayLayOut.Bands(0).Columns.Add("ColumnKey", "ColumnName")

However, in the middle of running, if it goes into that Grid_InitializeLayout again, the newly added column's width get huge.

So I added

NewCol = Grid.DisplayLayout.Bands(0).Columns("ColumnKey")

NewCol.Width = 100

However, in another run, the width get big again.

How can I get the column stay in fixed size?