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 are all features of ADO.Net?
Which keyword is used to accept variable number of parameters?
How can we load multiple tables in to dataset?
What is the role of clr?
Which name space is used to get assembly details?
What are the various methods provided by the DataSet object to generate XML?
What is difference between datagridview and datagrid control in winforms?
What are the different ado.net namespaces are available in .net?
Explian About DataAdapters
Is it possible to edit data in Repeater control?
What are the parameters that control most of connection pooling behaviors?
Define Execute Reader?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What do you know about ado.net's objects?
What are the drawbacks of using ado.net?