Dear Forum member
I have created a Data table with two column and after creating the data table i am adding a column “Status” with default value “No”.
Inside dowhile loop i am assigning the cell value and changing the “status” column value to “Yes” for each row and increasing the rowindex value for iteration.
I am using the loop condition dt1.Rows(rowindex)(2).ToString=“No”
It’s going good but at last it’s giving a error “There is no row at position 3.”
How to solve this error, i can only use while or do while loop.