I am using 2011Vol2. I use row layout column arrangement method in a ultragrid. When I use mouse to drag the column header to resize the column width, I found that I can't resize the column width with other method anymore. For example, I have a button to change column1's width to 100, if I show the form and do not do any action, I Click the button, it does, column1's width change to 100. But if i drag the column1's header to resize, and i click the button again, it doesn't work, column1's width doesn't change. I found that the column's width changed indeed, but the column's CellSizeResolved.Width didn't change. How can I resize it?
I had been looking at the same issue for days - this did the trick nicely
Thanks a lot indeed!
It's ok now! Thank you very much!
Hello stfigo,
Could you please try the following line of code and see if it helps:
ultraGrid1.DisplayLayout.Bands[0].Columns["Column 1"].RowLayoutColumnInfo.ActualCellSize = new Size(100, ultraGrid1.DisplayLayout.Bands[0].Columns["Column 1"].RowLayoutColumnInfo.ActualCellSize.Height);
I will be waiting for your feedback.