Added example for persistent grid settings

An example of how to persist grid grouping, filtering and sorting when
the application is terminated.