Hi,
I have DisplayLayout.Override.AllowRowFiltering, Sorting etc. set to True because basically I want every column to have these features enabled.
But now I have 1 single column where it should not be possible, e.g. the icons in the header should not be visible.
I tried column.AllowRowfiltering but it seems like this setting is ignored when the Override property is set.
What would be the easiest way to achieve this without having to set each property of each column separately?
Thank you,
Best regards
Hi Mike,
you are right, it was my mistake. It works now.
Thank you!
The column setting takes precedence over the override setting, not the other way around. I tried it out, just to make sure, and it works fine for me. So something else in your code must be overriding or re-setting this property in your project. Perhaps you are loading a layout into the grid after setting the property on the column?
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; UltraGridBand band = layout.Bands[0]; ov.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True; band.Columns[0].AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False; }