Hi,
I would like to load a look preset to the winGrid at runtime. Is that possible ?
I would like to do something like that:
ultraGrid1.LoadFromFile("c:\Program Files\Common Files\Infragistics\Presets\20081\CLR2x\Win\UltraGridBase\Standard\Office2003 - Blue Theme.xml" )
oder ultraGrid.DisplayLayout.Load("c:\Program Files\Common Files\Infragistics\Presets\20081\CLR2x\Win\UltraGridBase\Standard\Office2003 - Blue Theme.xml" )
Is there a functionallity in the existing ultraGrid (version 2008.1)
thanks a lot
Hi Roger,
Is this the sort of thing you're looking for?
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WinGrid_Apply_Presets_at_Run_Time.html
Andy.
Yes this it is :-) thanks a lot.
Does there exists also a version with Stream instead of a filename ?
Because i would like to save our presets in a resource.
Roger
Is there an other way how i could save a preset in a resource file and then load this one at runtime ? (without creating a temporary file)
DisplayLayout.SaveAsXml() has such funtionality but this has not the same xml format as the preset.
Not that I'm aware of, no. I think you'll have to use a temporary file created from the resource as a workaround.
Does seem like quite an omission though.