If i have 1000 records in dataset, how to do paging?
Answer Posted / arunbhararthi
you can use dataadapter fill method to implement paging in
dataset.
following is the syntax:
Public Overloads Function Fill(ByVal dataSet As DataSet,
ByVal startRecord As Integer, ByVal maxRecords As Integer,
ByVal srcTable As String) As Integer
WHERE dataSet is a DataSet to fill with records and, if
necessary, schema, startRecord is the zero-based record
number to start with, maxRecords is the maximum number of
records to retrieve, and srcTable is the name of the source
table to use for table mapping.which returns a DataSet
filled with the records based on the page size passed in the
method
for example:
da.fill(ds,0,100,"emp")
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is considered a service provider?
Web API supports which protocol?
What’s the use of “GLOBAL.ASAX” file?
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
What is viewstate in asp net with example?
What is http session state?
Explain asp.net mvc request life cycle? : asp.net mvc
How to find last error which occurred in Asp.net ?
How can we prepairing Interview
What is difference between mvc and asp.net? : Asp.Net MVC
List the events in page life cycle.
Explain the difference between debug.write and trace.write? When should each be used?
How can we register exception filter globally?
What is server infrastructure & server components?
Can we add code files of different languages in app_code folder?