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?
image
Target column is like below. (“G1”)

image

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))

2 Likes

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