[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Reverse for next statement

Posted on 2006-05-26
2
Medium Priority
?
181 Views
Last Modified: 2010-04-23
Hi experts,

I have a datagridview that I want to loop through from the bottom and up.
Normally I would use this code:

            For i = 0 To dg.RowCount -1
                "code"
            Next

How can I reverse it?
0
Comment
Question by:jonastovsen
2 Comments
 
LVL 6

Accepted Solution

by:
cubixSoftware earned 500 total points
ID: 16767766
Try

For i = dg.RowCount-1 to 0 step -1
  "code"
Next

HTH :)
0
 

Author Comment

by:jonastovsen
ID: 16767870

Thank you!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question