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
410
UltraGrid memory leak
posted

Hi,

I'm populating an ultragrid.datasource with a datatable. I've got on the InitializeRow event a method that inserts an image on certain column. I've got a button that after clicked return new datatable and it substitue the ultragrid.datasource. The problem is that each time that the ultragrid.datasource has other datatable the memory increases all the time, until the program launch an exception of memory usage.

I've already tried ultragrid.datasource = null before setting the new datatable. Tried:

ultragrid.DisplayLayout.Reset();
ultragrid.Layouts.Clear();

Nothing works. It seems that the grid is saving old sources. How could i clear it?