Posted on: 12/15/2014 5:42:00 PM | Views : 473

Hi All,
I have the following code in my application:
Dim counter As Integer = 0 For Each row As DataRow In Ds.Tables(counter).Rows ddlTables.Items.Insert(counter, row(0).ToString().Trim()) counter += 1 if counter>5 then exit for end if Next In the ddlTables, I only want to  insert the first row of the dataset, after the first row, I want to change to the next table from the dataset, but somehow this for loop is not testing when the table changes, it just keeps inserting all the rows from table(0) to the ddlTables. Is there any workaround for that, I don't want to create 5 separate for loops to insert the first row in the ddlTables.
any help will be appreciated.

Go to the complete details ...