Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Using foreach to deal with Excel rows and skip the 1st row as header

$
0
0
Thanks for your reply.
IXLRangeRows Rows(Func<IXLRangeRow, bool> predicate = null); // but this could be empty!
It doesn't work in my case, I have tried to use Rows() without arguments but the compiler fails.



Regarding
string test1 = row.Field("Name").GetString();
I surely have a column called "Name" but since the Rows() doesn't work I cannot test it.

According to the article and since the current row is set, I could get the data from Field("Name") without the need to skip the header row.

Viewing all articles
Browse latest Browse all 1877

Trending Articles