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
Explain how to create dynamic gridview?
What is the difference between ado.net and oledb?
How to add an aggregate column?
What is Serialization in .NET? what are the types of Serialization?
What are the major challenges in accessing data from a database?
What are the essential features of ado.net?
What does executereader return?
What are the namespaces used in ado.net for data access?
What is a column variable?
Which is faster datareader or dataadapter?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What is XML serialization
What is DataReader Object?
What is ole word?
How does ado.net work?