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
45
How can I resize the actual column width in row layout method?
posted

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?

Parents
  • 71886
    Verified Answer
    Offline posted

    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.

Reply Children
No Data