getting Row Count of DataTable in c#.net
-
plz I am trying to fetch 1,50,000 records from the DataTable and dataTable.Rows.Count returns an integer so it gets index out of bound. tell me the way to find the no records in the DataTable which can return a long value. Piyus Gupta
-
plz I am trying to fetch 1,50,000 records from the DataTable and dataTable.Rows.Count returns an integer so it gets index out of bound. tell me the way to find the no records in the DataTable which can return a long value. Piyus Gupta
Why do you need to fetch so much records at once? DataTable.Rows.Count returns integer and its maximum value is 2,147,483,647 so it should be enough for your case
#region signature my articles #endregion
-
plz I am trying to fetch 1,50,000 records from the DataTable and dataTable.Rows.Count returns an integer so it gets index out of bound. tell me the way to find the no records in the DataTable which can return a long value. Piyus Gupta
Consider using a
DataReader
instead.