I am trying to cycle through the grids row collection; i keep getting an exception thrown at me about "unable to cast ultraGridRow to ultraGridGroupByRow" "weird". Any way. Any suggestions would be appreciated. Here is the code I am using for now.
try
{
// breaks during iteration
Unable to cast object of type 'Infragistics.Win.UltraWinGrid.UltraGridRow' to type 'Infragistics.Win.UltraWinGrid.UltraGridGroupByRow'.
}
catch { }
This code worked for me, so I'm not sure what's different in your application. Is this a flat grid (granted with grouped rows), or is there a hierarchy? You could naturally just use an UltraGridRow and check its type before proceeding, but I'd think that this should work as-is.
-Matt
I just found the exception further up the stack. Sorry for the waste of time, code works fine for me as well.