I want to know if the user has changed the grid settings since it was originally loaded. That way I can ask the user if he would like to save the setting when exiting the application. How do I find out if the grid setting have changed since it was loaded?
Thanks!
Hi,
What settings do you mean? If you mean things like the column width, then the grid does not track that kind of information. You could handle all the events that fire when the user changes the things you are interesting in and keep a flag. You would use events like AfterColPosChanged, AfterRowFilterChange, AfterSortChanged, etc.
I am referring to any of the grid settings that get persisted. Like you pointed out, there are the colposchanged, filterchange, etc etc. If there were some discrete ones I were interested, I could trap them and set some flag to indicate change to the setting. But, I am just interested in finding out if ANY of the settings have changed.
It is the equivalent of the prompt "do you want to save changes?" one gets when closing a modified document. I want to do something similar when a user has modified some grid settings and is about to close the application. And for that I am looking for some property on the grid which would help me.