I have two panels Panel_A and Panel_B (using tree control to navigate).
Both these panels have DataGrid in them. 
DataGrid has a "Add row" context menu.

Scenario WITHOUT Memory leak:
    Go to Panel_A
    Add an empty row to the grid
    Go to Panel_B
    Run GC.....Panel_A and its grid are GCd

Scenario WITH Memory leak:
    Go to Panel_A
    Add an empty row to the grid
    Edit a cell
    Go to Panel_B
    Run GC.....Panel_A and its grid are NOT GCd

This led me to think that ItemEditors are causing memory leak.
Any ideas on how I can avoid this ?

Reply via email to