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
1075
Changing Database Runtime
posted

 Hi!

I need to change a  database during runtime.DB structure is the same but data is different.

Are ValueLists, Filters, etc. needed to be cleared manually or they are cleared automatically when I change DataSource of my grid? Is it OK to set grid.DataSource = new DataSet(); or old DataSourse needs to be desposed before it?

 

  • 37774
    posted

    If the structure is the same, these things should still remain intact, I believe.  As a general good practice, you should probably be doing your grid's initialization in the InitializeLayout event, since this will fire when the grid is re-bound.

    -Matt