Display Label Count On ASP.net Label Printing

I'm trying to figure out the best way to Display the Label Count or Box count Information on my Labels.  My Labels are dynamically populated from a Dataset with the OrderNo as my first parameter. This parameter displays a combobox with the orderNo and once selected the labels display the OrderNo, Customer Name, City and State of where it is shipping to.
The Number of Boxes that the customer is receiving is where i'm having an issue.  Not sure if this Box count is going to be added into a Parameter text box or if there is another way to do this.  This box count is unknown until all the boxes are sealed and ready to go out the door.  So if we find out there are 5 boxes there will be 5 labels and each box will display  the "box number" of 5 . Box 1 of 5, 2 of 5, 3 of 5, 4 of 5 and 5 of 5.

I'm also using the Devexpress XtraReport Suite to make the margins settings of the labels easier to manage.
Southern_GentlemanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kamal KhaleefaInformation Security SpecialistCommented:
make a function that will count the # of boxes and then make a for loop to set the count of each box

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.