Click or drag to resize
NanoXLSX

WorksheetGetFirstDataRowNumber Method

Gets the first existing row number with data in the current worksheet (zero-based)

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+c253a7d00ca5e19be14df4552cf12c589ec4ab3e
Syntax
C#
public int GetFirstDataRowNumber()

Return Value

Int32
Zero-based row number. In case of an empty worksheet, -1 will be returned
Remarks
GetFirstDataRowNumber() will ignore formatted but empty cells before the first row with data. If you want the first defined row, use GetFirstRowNumber instead.
See Also