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 is basic use of data view?
What is command class in ado.net?
Define Execute Reader?
What is dao and ado?
What does sqldatareader return?
Which name space is used to get assembly details?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What is an orm, and why would you use one instead of plain old ado.net?
What are all the classes that are available in System.Data Namespace?
What is meant by executenonquery?
What are the advantages and disadvantages of using datalist?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What is the difference between connected and disconnected environment?
What are the Features and disadvantages of dataset
Define executenonquery?