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
285
Resolve DefaultableBoolean values
posted

Hi

I am using the UltraGrid and need to determine whether Filtering is switched on or off (I am allowing the user to right click and switch it on/off from the context menu).  Currently I am checking the value of the AllowRowFiltering property on the band, something like the following, where _contextColumn is the UltraGridColum that has been right-clicked:

if (_contextColumn.Band.Override.AllowRowFiltering = DefaultableBoolean.True) then

The problem I am having is that AllowRowFiltering is set to 'Default' and I want to somehow 'resolve' this to the actual value.

Maybe I am using the wrong property for this or maybe the correct property but wrong object. I have also tried

listGrid.DisplayLayout.Override.AllowRowFiltering but this suffered from the same problem.

Thanks in advance for your help.