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
1210
WinGrid preformance issues - need your help :-)
posted

Guys,

Congratulations on the new forums look!

I have a major major issue - i'm using WinGrid and inserting an image as a progress bar image background which is then assign as an EditorControl on one of the cells in each row.

The issue is the these images when loaded to all the rows at once are causing major memory issues.

I am using load on demand, and Initialize row method since the image is depended on the valued of other rows.

But - when the grid is sorted - it seems to bring all the images and memory consumption of the grid rises to up to 200M - i have some tabs like this - and this causes memory consumption of almost 1.5G! ;-(

I have tried using teh VisibleRows - and whenever the scroll region changes - draw the images only for the visible rows - assuming that for a grid containing 1000s of rows only a few will become visible in practice.

This works but not for the sorting - when the grid is being sorted - the VisibleRows are not affected some how though in practice they do...

How can i get the VisibleRows after a sort operation?

Is there a way to make the grid not initialize ALL the rows after a sort operations (i'm using UltraDataSource).

This would actually save all the trouble from me.

My second problem - which is a BIG BIG problem is that my images are not being disposed when the grid does - or when the progress bar is being disposed (i've tried both).

I have tried putting the image as a cell background - in this case the image is being disposed - but looks differently and in addition - when a row is active it is being colored and hides my image.

Can you guys pls help? It seems like a dead end - whatever i try - some of the issues are being solved and other rises - you help is really impotent.

I'm using the image since you guys don't have a multi-color progress bar - my progress bar have sevral segments, each segment has a diffrent color and precentage size. My row data represent a task, each task is consisted of jobs - and the progress bar image shows a colored segment for each status of jobs - like running, waiting, completed and so on... if i got the wrong idea that you guys don't have a progress bar like this - please correct me - this is the root problem - if this is solved - all the other is irrelevant.

This progress bar is a real issue for us - i wanted to know also if we can pay for support that will solve this problem if this is not a trivial one - can i talk to someone and see if this multi-color progress bar can be addressed by you?

Thanx!

-Gili