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?
Thank you. Ca chuoi....
Hi,
You can use property LockedWidth to fix width of column
Ex:
NewColumn.LockedWidth = True
Goodluck