How to store data if column name is null?

Hello, all

I’d like to store data which doesn’t have column name. In this case, how to specify this column?
Target column is like below. (“G1”)


Thank you !

Use row(6) - that is the index of the 7th column (zero-based)

1 Like

Hi @Dorothy_lee

Please check this thread to add column header. Replace the square brackets to round brackets

Or otherwise provide the column index, which starts at 0 instead of column name - Convert.ToString(row.Item(0))


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.