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.
listGrid.DisplayLayout.Override.AllowRowFiltering but this suffered from the same problem.
Thanks in advance for your help.
Hi Darren,
You can Submit a feature request to Infragistics.
Matt,
Thanks for your reply. I was hoping that I could avoid setting the initial state explicitly because the code is actually in a base class that is inherited by all the grids in our application. I don't really want to force the setting to be one way or the other in the base class code and it doesn't prevent the setting being set to default later somehow.
I'll try the reflection method, which seems more robust. I will probably have similar situations with other properties. Would I be correct in assuming that I will need to use reflection for all situations like this?
Can I suggest that this property is made visible in some future version?
Darren
I think that your best bet is to just set the AllowRowFilteringProperty on your grid to the initial state that you want instead of Default, since then you know exactly what it maps to. If you have reflection permissions in your application, you could look at the AllowRowFilteringResolved property on the band (which is Internal).
-Matt