I've just updated to xamDataGrid 2009 vol 2 and am revisiting the LoadCustomizations/SaveCustomizations behaviors that I couldn't get working to my satisfaction with previous versions.
The simple example is I have a grid with movable columns. If I move a column and SaveCustomizations to the user.config (I can see that the xml represents the new order), then create the usercontrol that holds the grid again and LoadCustomizations using the saved settings I can see that:
1. prior to the load the SaveCustomizations returns the columns in the orginally defined order,
2. the saved xml has the changed order
3. but if execute LoadCustomizations with the changed order and then execute SaveCustomizations immediately afterwards the values are in the originally defined order. Also the grid displays with the columns in the originall defined order.
I've tried LoadCustomizations in both the usercontrol_loaded event and the datagrid_FieldLayoutInitializing event and it doesn't make a difference. I've set AutoFit=false and autofitmode=default and the behavior never changes. I've even removed AutoFit and AutoFitMode and the behavior doesn't change. Do LoadCustomizations & SaveCustomizations no longer work?
This is STILL an issue and has not been fixed! LoadCustomizations works only if you use it in the FieldInitializedLayout event.
General point: There's NEVER any information for other people looking at the forums for information as to when a problem has actually been resolved and in which 'hotfix' it resides in (we need specific version numbers).
Thanks Andrew!
Glenn
les122 said:I've stumbled into a new problem with restoring settings, this time when allowing the user to also resize columns
les122 said: If nothing else I think there needs to be some mention in the doc of when to best "LoadCustomizations" in your code.