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
645
Load grid layout from an XML document failed?
posted

Hello all,

I got the problem: load grid layout from an XML layout file throws exception.

Situation:

The windows application (OS WindowsXP) with UltraGrid (Infragistics 2008 Vol. 1)

User can move columns or set columns unvisible.. so far so well.

then the user favorite layout can be save as one XML File -

 

 

this.ultraGrid1.DisplayLayout.SaveAsXml("file.xml")

This XML document can be saved as string in one table column in oracle database, which has datatype as CLOB.

Next time if the user use the application, we get the string from database and store in an XML document.

Then in WindowsForm LoadEvent use this -

this

 

 

.ultraGrid1.DisplayLayout.LoadFromXml("file.xml").

But I could not see any bands in the grid, the grid is empty. (Without the "LoadFromXML" all is fine.)

It seems that the XML file corrupt?

or is the layout file dependent on database table column type or database parameters?

or perhaps I should use this method in the Grid InitializeLayout Event?

Many thanks in advance & best wishes