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
75
Columns of fixed width
posted

We have a grid where the first two colouns contain a check box and an icon. We need these columns to stay the same width when the window is resized, or when columns are added to or removed from the grid. The other columns should scale to fill the available space.

In HTML this would be easy to do. Simply specify the width for the columns that should change with a star as unit, e.g. width="1*". However, if I write this in our layout XML file, DisplayLayout.LoadLayout throws an ArgumentOutOfRangeException, whch comes ultimately from .NET's Unit class. You might think that setting max-width and min-width on the fixed columns would do the trick, but they have no effect.

Does anybody out there know how to do it?