There should be nothing wrong with that code snippet. Columns and GroupTemplates are both enumerable.
If possible, could you send us a small test project that demonstrates the exception? That would help us in investigating what is causing it. Please send it to email@example.com and include a link to this forum thread for reference. Thank you.
Imported from legacy forums. Posted by Diane [Xceed] (had 192 views)