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
490
Formate cell for column
posted

hi ,

i am doing formating for column ,i have to do formate for each cell in the column like the follwing,but i have Memory performnce problem please see the attached ,when i am using the below code the GC not callinf for the grid .

colume1

1.22

1.333

1.5

and i am using the follwing code : 

 

 

 

 

 

int d_num = int.Parse(e.Row.Cells["Decimal_points"].Value.ToString());

 

 

DefaultEditorOwnerSettings settings = new DefaultEditorOwnerSettings();

 

settings.Format =

 

CommonConstant

.GetGridyMask(d_num);//retuen "0.0" or "0.00" or "0.000"

 

 

 

DefaultEditorOwner owner = new DefaultEditorOwner();

owner.Settings = settings;

e.Row.Cells[

"MW_OPENING_PRICE"].Editor = new EditorWithText (owner);

Parents
  • 469350
    Offline posted

    Hi,

    I'm afraid I do not understand what you are asking or what this screen shot is supposed to mean. It's clearly a screen shot of Ants memory profiler, but without any context of what you did to produce this, it's meaningless.

    I can tell you that since you are declaring a new EditorWithText here, you are responsible for disposing of that object. The grid cannot assume that just because the grid is disposed that your editor should be disposed, too.

Reply Children