I assigned in my data table value in a variable and pushing data one by one with the help increment counter I have read excel sheet it contains 1893 rows
Getting Errors AS: " There is no row at position 1892"
Do you get yourDatatable.Rows.Count.ToString as 1892? Then your DT is that long and you have no more rows.
rowIndex starts at 0
Datatable with 3 rows (index 0,1,2)
Datatable.Rows.Count : 3
So to check all rows you have to : rowindex < (Datatable.Rows.Count - 1)