I know how to loop through a GridView and extract each row using the for each loop as below, but I was looking for a easy way to loop through the datagrid and say extract the last 20 rows? Is it possible to go through in reverse order in vb.net?
For Each row As GridViewRow In InventHistoryGridView.Rows
Next row
Rows is just a representation of the Rows collection in a GridView
Unless you specifically have to start from the last row and head backwards, in which you do as Davide Piras suggested in his comment, displayed below.