What is the best method to fill the GridView. using
SqlDataReader or Dataset and why

Answer Posted / shiva

Depending on the requirement either we can go for Dataset
or Datareader.If the information which we are trying to
access is less then best and fastest way is to go for
Datareader in all other scenarios Dataset can be used.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

542


What is anonymous class in c#?

509


What is inheritance in csharp?

514


What is an interface class in c#?

530


Does console.writeline() stop printing when it reaches a null character within a string?

513






What is iqueryable and ienumerable in c#?

502


What is the base class for array types?

557


Is void a class?

468


Explain About Virtual functions and their use.

550


What is the use of console application in c#?

466


What is datetime parse in c#?

510


What are accessors?

526


how encapsulation is implemented in c#

631


Can extension methods access private members?

512


What is the role of the datareader class in ado.net connections?

501