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
440
Ultragrid column size
posted

How to change the width of the column programmatically?

Parents
No Data
Reply
  • 45049
    posted

    Get a reference to the column and set its Width property.

    For instance, in C#, if you're in the InitializeLayout event handler and you want to resize the column in the root band of the grid whose key is "Col1" to be 100 pixels wide:

    e.Layout.Bands[0].Columns["Col1"].Width = 100;

Children
No Data