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
250
Hidden column is visible, but collapsed
posted

Hi,

  I'm working on a problem where I'm building a DataTable programatically, binding it to the WinGrid via SetDataBinding(), but for some reason the specific columns I am hiding are still appearing in the grid, but with a 1 or 2 pixel width. This means that the user can still drag them wider and see the columns. I want to hide them. This is the code that I'm using to hide:

foreach (UltraGridColumn column in e_.Layout.Bands[0].Columns)
 {

  // if this is the colulmn we want to hide:

column.Hidden = true;

}

Very simple, yes?

Any explanation as to why hiding the column seems to just resize it to 0 width?