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


Please Help Members By Posting Answers For Below Questions

Which is better ole db or odbc?

493


What is ole word?

521


Explain the difference in record set and dataset?

482


Define the data provider classes that is supported by ado.net?

515


What is the difference between an ADO.NET Dataset and an ADO Recordset?

543






What is difference between datagridview and datagrid control in winforms?

509


Explain the advantage of ADO.Net?

551


What are the parameters that control most of connection pooling behaviors?

507


Why is it important to close an ado.net application?

526


Command objects uses, purposes and their methods.

516


How can we add/remove row's in "datatable" object of "dataset"?

537


What are the different methods by which we can populate a dataset?

678


What is difference between ado.net and asp net?

508


What are the connected and disconnected modes in ado.net?

475


What is the usage of the dataset object in ado.net?

481