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
What does ado stand for in ado.net?
Describe connection object in ado.net
Does entity framework use ado.net?
Explain why canot we use multiple inheritance and garbage collector paralelly in .net?
What is the use of connection object in ado.net?
What are the steps to connect to a database?
What is the use of data grid?
What is difference between datatable and dataset?
What is Dataset Object?
How to identify the controls which can be used for binding data?
What are the steps you will take to improve performance?
Which keyword is used to accept variable number of parameters?
What is the difference between Command and CommandBuilder object?
What is connection pooling and what is the maximum pool size in ado.net connection string?
What is execute reader in ado.net?