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
Which is better ole db or odbc?
What is ole word?
Explain the difference in record set and dataset?
Define the data provider classes that is supported by ado.net?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What is difference between datagridview and datagrid control in winforms?
Explain the advantage of ADO.Net?
What are the parameters that control most of connection pooling behaviors?
Why is it important to close an ado.net application?
Command objects uses, purposes and their methods.
How can we add/remove row's in "datatable" object of "dataset"?
What are the different methods by which we can populate a dataset?
What is difference between ado.net and asp net?
What are the connected and disconnected modes in ado.net?
What is the usage of the dataset object in ado.net?