I've been having serious performance issues with my UltraWinGrid (v 8.2). I use them all throughout my application and only have issue with one grid.
I've finally been able to track this down to the icon column. I only load icons for some of the rows and the value was otherwise set to nothing. If I change this to load an icon in every row (even an empty icon); the performance issue is resolved.I'm sure there is a better way to handle this?Regards,
Leah
Well, if you read the WinGrid Performance Guide, then I assume you tried trapping for unhandled exceptions and didn't get any.
If that's the case, then I can't explain why it's slow. I don't see anything about what you are describing that should cause a performance problem.
I recommend that you try to reproduce the problem in a small sample project. Then either post it here or Submit an incident to Infragistics Developer Support and we will be happy to take a look and see what's slowing it down.
Hi Mike,
Thanks for responding to my post.Here is how I'm currently handling thing:In VB.Net I populate a collection with a very simple class of properties consisting of : 1 boolean field, a few strings and 1 System.Drawing.Bitmap (I convert an .ico to .bmp before loading into collection).I bind my grid to that collection. This grid is read only. I have used this same method in multiple other grids with no issue. (Also, I followed most of your suggestions from the grid performance article. . which helped in other areas so thanks for that!)In this specific grid, there are only about 50 rows and it was extremely slow to select , or scroll through vertically or horizontally. I tried all previously noted suggestions that applied to this grid, but nothing worked.The bitmap field in this grid was set to nothing about 85% of the time. In every other grid the bitmap field was always populated. This was the only difference that I could find. So, I changed things to always populate the bitmap field and all performance issues were resolved.
Hi Leah,
There's really not enough information here to go on. I can't see any reason why populating some cells with an icon would cause a performance issue.
My only guess is that something in your code is attempting to reference the image and raising an exception which is getting caught. Maybe you should set the Visual Studio IDE to break on all run-time exceptions and see if any are occurring.
If that doesn't help, please provide a small sample project that demonstrates this issue. Or at least more details like the data type of the column, how you are displaying the icons, whate events you are handling to populate the cells, etc.