Geeks With Blogs

@matchristian
  • matchristian @nickgravelyn I always watch them hoping for a 'new XNA' which would make me buy one almost immediately. about 2 days ago
  • matchristian Hour and a half of bball practice; nonstop shoot run dribble, repeat a lot. about 2 days ago
  • matchristian "Ever seen River Monsters where the fish go after male genitalia?" No, Trigs cashier, I have not. #awkward about 4 days ago
  • matchristian Filming fact: Sriracha is an acceptable form of fake blood, except now my arm smells like Chinese food. about 4 days ago
  • matchristian The guy next to me is freaking out about how there's 'too much texting and email' now. You, good sir, are obsolete. about 6 days ago

News View Matt Christian's profile on LinkedIn


Code.Blog Code Talk for the Game Developer

Lets say you have some code built to dynamically build an Excel report for your company.  You've got a header record with tons of detail records and want the ability to hide the detail records.  Add the following to select and group rows dynamically in ASP .NET (VB Code Shown):

xlWorkSheet.Rows.Range("B4", "B7").EntireRow.Group()

This will select rows from 4-7 (in this case in the B column) and group them together.  In this case, you would either have your details go from 4-6 and your Header at 7 or (since that seems backwards), a header at 3 and records from 4-6 (note: if 7 has data, that will be what is shown when the group is collapsed).

Posted on Thursday, June 5, 2008 9:47 AM Tutorials | Back to top


Comments on this post: Grouping in Dynamic Excel Sheet

# re: Grouping in Dynamic Excel Sheet
Requesting Gravatar...
I liked your site.
Left by Rob Miller on Apr 05, 2010 3:44 PM

Your comment:
 (will show your gravatar)
 


Copyright © Matthew Christian | Powered by: GeeksWithBlogs.net | Join free