How to Increment Column in DataTable

Hello All,

I have a CSV file which has only one row and 10 columns .
I don’t want to read 10 times … like …
row(“column1”).ToString
row(“column2”).ToString
row(“column3”).ToString

is there anyway we can increment column like we increment rows with Get row?

Hi,

row(0),row(1),row(2) would give you the same result of the example you have show.
What exactly are you trying to achieve?

Cheers

It worked thanks for your help!
counter=1
row(counter).ToString
assign counter =counter+1