Hello
We are developing Winform application 2005 using Infragistics component Vol 3.
I am in need to develop NEW Presets dynamically as we have in our existing ultrawingrid Designer.
Is that possible to create programmatically custom presets ?.becos once i create the new custom presets means it ll automatically generate the some xml file.I cant able understand that xml file.
How i can do that in manually at runtime?
Pls give me some example/suggesstion how to do that.
Thanks in advance
Magush
Thanks Mike.It works fine.
Thanks lot
Hi Maguesh,
Oops. Apparently, the grid has a method to apply a preset (ApplyPresetFromXml / ApplyPresetFromBinary) but not to save one.
To save a Preset from a grid, you use the PresetSerializer. Like so:
PresetSerializer ps = PresetSerializer.FromObject(this.ultraGrid1, PresetType.All); ps.SaveAsXml(filename);
Hi Mike
Thanks for the Reply.
Could you provide me the sample code?Because i ve searched the method for save preset, i am not able to find it.
Thanks
Maguesh
Hi Magush,
I beleive the grid has method to save and load a preset. So you can set up your grid with the settings you want and then called the SavePreset method.