Hi,
I am using Infragistics2.Win.v9.2 and I am trying to save the properties of a grid except I do not want to save the valuelists as my values can change on a weekly basis and the users do not want to see the id of an object but the actual name.
I was using
.SaveAsXml(objStream, Infragistics.Win.UltraWinGrid.PropertyCategories.All)
And I tried
SaveAsXml(objStream, Infragistics.Win.UltraWinGrid.PropertyCategories.UnboundColumns)
and it gave me the same results as All.
The documentation for PropertyCategories is not that informative. So how can I do this? All I want to do is store the position of the columns and the sizing of each column so users can customize the grid to their preferences. And when they launch the app they then get the grid the way they want it.
Thanks.
It seems like all you need to do is specify SortedColumns and that should do it. If you have unbound columns in your grid, then you probably also need to include the UnboundColumns flag.
Mike Saltzman"] Hi, The documentation for the PropertyCategories enum has been updated in 10.3. http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.3/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v10.3~Infragistics.Win.UltraWinGrid.PropertyCategories.html
The documentation for the PropertyCategories enum has been updated in 10.3.
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.3/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v10.3~Infragistics.Win.UltraWinGrid.PropertyCategories.html
I'm using version 10.3 and read the documentation.
If I only want to save the order of the columns then what is the correct setting or combination?Users of the grid can change the order of the columns and hide columns, we need to save these settings but not sorting or filtering information, etc.
Thanks for the help.
Hi Mike,
I am using version 9.2 and it is not the latest service release. Will have to test it when I get the latest version.
I found a workaround, I reload the values into the columns valuelist (by calling the routine that loads the data into the column) right after loading the XML into the grid.
Hi Mark,
What version of the grid are you using? It says 9.2 in your XML here, but do you have the latest service release?
If the ValueList option is indeed working backwards, then that's clearly a bug. But I find that very hard to beleive and I know I have used this option recently and it worked fine for me.
Can you post a sample project demonstrating that not including the ValueList flag still saves the ValueLists and that including the flag does not save them? I can't get this to happen on my machine.
Hello All,
A funny thing, I call the SaveAsXml and LoadFromXml routines with the ValueLists option and the Valuelists do not get saved.
I get the following XML statement. (Is there a way I can get a patch to fix these bugs)