Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Get Worksheet Row Count
posted

hi:

i have a worksheet like this:

a   b    c    d

a1       c1 d1

this is a empty row.

     b3 c3 d3

.....

i want to read  the rows have data;

if i use while() i dont know how to check the last row.

is there a method to  get the  aviable rows count?

 code error :int sheetRowCount = ((Infragistics.Excel.WorksheetItemCollection<Infragistics.Excel.WorksheetRow>)(worksheet.Rows)).Count;