Our application saves grid and column properties as a view that can be applied to a WinGrid. If a view has a GroupBy column and applied to the grid (with the built in ColumnChooser), the grid is initially displayed with the group by column and the collapsed group by rows. If the group by column is then dragged on to the collapsed group by row, the first time and only the first time, that column remains hidden. It is still unchecked in the Column Chooser. After checking it to make it visible, any subsequent grouping and ungrouping works correctly as far as being hidden or not. If I expand the group by row before I do the first ungrouping it also works correctly. Am I missing some property initially that would cause the column dragged back to the grid to remain hidden the first time?
RM
I have v19.2 Infragistics Ultimate and I have a wingrid on the screen of my app. Dragging a column header into the group by column works fine, but sometimes when I drag the column header back into the grid, it doesn't return to visibility in the grid. Also, sometimes, the grid goes to lunch in a routine that looks at daylight savings time calculations. Any thoughts?
Okay, it looks like the HiddenWhenGroupBy property is what I need. Thanks for your help.
Hi RM,
RM_mid said:I believe I noticed that when a column is a GroupBy column, it's Hidden value is also set to true.
I don't beleive that's true. Grouping a column should not change the Hidden property. There's a property on the column call HiddenWhenGroupBy which determines if the column is actually hidden when grouped. So there's no reason for your code to be setting the Hidden property here.
The HiddenResolved property will change, of course, since this indicates the actual state of the column, but this is just a read-only property.
Our application can optionally save column settings as an overall view to call up as needed. I believe I noticed that when a column is a GroupBy column, it's Hidden value is also set to true. So when a saved view is accessed to be applied to the grid, a GroupBy column's Hidden value is also true.
Okay, I see the issue. But if you want this column to be visible, why are you setting Hidden to true?
If there's a bug here, it might be that the column is not maintaining it's Hidden state the second time you ungroup it. But I'm not sure how they would happen, since there's no way for the user to re-group, since the column is hidden.