Can a DataReader be used as a DataSource for a GridView.
If it is so how will you handle paging.
Answer Posted / rahul singhal
yes u can use data reader to fill gridview with while
function. and paging depends upon the datagrid property. if
u use custom paging there in no possibility with data
reader. u will have to use data table to fill data grid and
data table should be filled through data reader.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Describe connection object in ado.net
What are the different execute methods of Ado.Net?
What are the namespaces used in ado.net for data access?
What are the rules to implement connection pooling?
What is the full form of ado?
Which namespaces are used for data access?
What is ado connection?
What is different between sqlcommand object and command behavior object?
Name which operations can you not perform on an ado.net dataset?
Is datareader faster than datatable?
What is sqldatareader in ado.net?
How do you merge 2 datasets into the third dataset in a simple manner?
Can we connect two dataadapters to same data source using single connection at same time?
Explain the advantages and disadvantages of using datalist?
I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?