Hello
We are developing Winform application 2005 using Infragistics component Vol 3.
I have used the combo to list the presets which is provides from infragistics.I am applying those Presets to UltraWinGrid at runtime.It works fine.
I have included one option wich is "default" When i select that option,it will go to initial state view.
For eg Ultragrid designer there is a Manage Presets in wich they ve three tab such as Look,Behaviour,Combine in that they ve listed presets according to the tab.
For eg i ve selected look tab they ve list the different presets, in that first option is DEFAULT, next item aero.. etc.
I ve selected aero means those styles ll apply to grid.and then i ve selected DEFAULT it ll comes to initial state HOW. I need to do like that.
IS there any methods or properties to restore it initial state.
Thanks in Advance
Maguesh
What's the method you are using to load the Presets? If I recall correctly, this is done using the PresetSerializer object. I think there's a method on this object to reset the settings to their defaults, no?
Thanks For your replay.
I ve used ApplyPresetFromXml method to load the preset.Can you tell me how to use PresetSerializer to restore in default state.
Thanks in advance
Hi Maguesh,
Oh, I see. I didn't know they added methods to the grid for presets. These methods are just for convenience, though. Internally, everything Preset-related is handled by static methods on the PresetSerializer class.
So I think you can just do this:
Infragistics.Win.PresetSerializer.ClearPresets(this.ultraGrid1);