I just recently upgraded my projects from ver 8.3 to ver9.1 and have applied all the current releases. I am now experiencing the following two issues i am not able to resolve.
1.) I am currently setting my grid datasource at runtime to generic IList(of T). This was working without issue in the previous version but now is taking and exceptionally long time to load. I read Mike's Perfomance guide document where it indicates that a binding source is now recommended. Can you give me some guidance as to how to set a Bindingsource to a generic IList(of T) or a List(of T)?
2.) All my grids are now displaying a Row Expansion where in the previous version by rows were flush to the left. My grids are single Band grids for the most part without children. I did find the override property of ExpansionIndicator and set this to Never but that just removes the + sign it does not repostion the rows to flush to the left. Is there another property with the new version that needs to be set to remove the row expansion?
My thanks in advance for your help.
This has needed addressing for some time. In 10.1 I just dragged my data source from the data source tab onto my form and it took 15 minutes to load. Then I changed the maxbanddepth to 2 and it's gone away again, don't ask me why. I assume in another 15 minutes I'll be able to see my grid again. So that's 1/2 hour of my day gone just to put a grid on a form. Even if we could set a preference option saying 'default new grids to X band depth' it would be a big improvement.
I had this exact same issue when I finally did the upgrade from ver 8.3 to ver 10.1 with service release .2013 I was able to resolve both of these issues by setting the grids MaxBandDepth from the default value of 100 to either 1 or 2 (as necessary for the grid) and setting the grids ViewStyle from the default MultiBand to SingleBand as appropriate for the grid.
Setting the MaxBandDepth to a more appropriate number resolved the binding taking an exceptionally long time. And setting the ViewStyle to SingleBand (when appropriate) resolved the Row Expansion issue.
nodak said:The first issue on further research has gotten a bit more complicated. I am using Visual Studio 2008 and what I am seeing happening is that at the point of grid.datasource instantiation the application will freeze. It doesn't throw an error, it doesn't 'crash' the application, it just won't move past the instantiation. I have attempted 'step throughs' during debug but again the application will just stop at that point an not move on. This does not occur once I reverted back to v8.3. Have you heard/seen/experienced this one before?
Unless you are using a recursive data source or not using a BindingList to wrap your data source, I know of no reason why this would occur.
Are you using the latest service release?
Can you duplicate this problem in a small sample project? If so, you can either post it here or Submit an incident to Infragistics Developer Support and we will take a look.
Thanks Mike for your help. The grid issue was resolved by setting the grid.displaylayout.viewstyle to single band.
The first issue on further research has gotten a bit more complicated. I am using Visual Studio 2008 and what I am seeing happening is that at the point of grid.datasource instantiation the application will freeze. It doesn't throw an error, it doesn't 'crash' the application, it just won't move past the instantiation. I have attempted 'step throughs' during debug but again the application will just stop at that point an not move on. This does not occur once I reverted back to v8.3. Have you heard/seen/experienced this one before?
thanks much Mike - I do appreciate your help.
nodak said:1.) I am currently setting my grid datasource at runtime to generic IList(of T). This was working without issue in the previous version but now is taking and exceptionally long time to load. I read Mike's Perfomance guide document where it indicates that a binding source is now recommended. Can you give me some guidance as to how to set a Bindingsource to a generic IList(of T) or a List(of T)?
The BindingSource suggestion in the WinGrid Performance Guide regards a change that was made in Visual Studio between CLR1 and CLR2. So if you were not having a problem in v8.3 of the WinGrid and now you are having a problem in v9.1, the BindingSource is unlikely to help.
But to answer your question, you simply create a BindingSource object. You could put it on the form at design-time if you like. Then at run-time you set it's DataSource to your list. Then you bind the grid to the BindingSource instead of directly to the list.
nodak said: I just recently upgraded my projects from ver 8.3 to ver9.1 and have applied all the current releases. I am now experiencing the following two issues i am not able to resolve. 1.) I am currently setting my grid datasource at runtime to generic IList(of T). This was working without issue in the previous version but now is taking and exceptionally long time to load. I read Mike's Perfomance guide document where it indicates that a binding source is now recommended. Can you give me some guidance as to how to set a Bindingsource to a generic IList(of T) or a List(of T)? 2.) All my grids are now displaying a Row Expansion where in the previous version by rows were flush to the left. My grids are single Band grids for the most part without children. I did find the override property of ExpansionIndicator and set this to Never but that just removes the + sign it does not repostion the rows to flush to the left. Is there another property with the new version that needs to be set to remove the row expansion? My thanks in advance for your help.
This has not changed since the previous version. Are you sure you have made some changes to the code of in the designer?
It sounds to me like what you need to do is set grid.DisplayLayout.ViewStyle to SingleBand.