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
1104
Disable column header icons for one column, allow for every other column
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    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;
            }

Reply Children
No Data