Handling paging in the UI without using datagrid/dataview

G

Guest

Hi

Please give me some inputs on the following :

Iam planning to use a custom control to list a large number of records from
sql database through ado.net. so in the following code, if i give a select
* query, does the dataset holds the complete records in the memory? or is
there anyway i can set options in the dataset? or the paging logic need to be
done in UI side?

Hari


//Open Connection.
SqlConnection conn = new
SqlConnection("Server=server;uid=login;pwd=pwd;database=northwind");

//Set the DataAdapter's query.
da = new SqlDataAdapter("select * from customers", conn);
ds = new DataSet();

//Fill the DataSet.
da.Fill(ds, "customers");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top