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?
Argh, the column hiding logic is also 'ammended' by a rules engine after the initial layout is done. The 'static' hidden columns were being reset to visible by the rules, and so the column had a 0 width after being hidden and then unhidden.
So it's my bug, sorry for the noise.
Apologies, I should mention i'm using v8.2 of Infragistics.