• Perhaps header row is also inserted as data row into tables.As that C# program begins from -1 there'll be 1 row difference.