Hi,
using ultraGridDocumentExporter with a grid containing groups fails with "Object not set to an instance of an object." error message. It's probably a bug so my intent was to disable this kind of export as soon as user groups the grid data.
I can not find, however, any way to check the grid contents has been gropued or not at runtime. Any idea?
I'm running the 2008 suite with the latest HotFix.
Thanks
Looks like problem dissapeared re-installing hotfix :-) I'm not sure what was wrong there.
Anyway, I found a post here describing similar symptomps. The problem definitely occured inside export component, not our code.
Thanks for the programming tips :-)
I'm not aware of any bugs like this. Are you sure it's not something in your code that is null? What's the call stack look like? Where is the exception occurring? Have you reported this to Infragistics Developer Support?
You can determine if any columns are grouped by looping through the SortedColumns collection on the band and checking the IsGroupBy property on each column to see if any of them are true.
You could also check something like grid.Rows.IsGroupByRowsCollection to see if the root level is grouped.