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

Answer Posted / justgovi

Datareader is the best way to fill the grid view.
Datareader is faster and the main purpose of it is to be
used in read only scenarios.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of constructors in c#?

499


Define multicast delegate? How it be used?

588


What is a type c#?

492


Why do we need generics?

510


Write a sample code to write the contents to text file in c#?

472






Explain the differences between static, void and public in c#?

521


What is verbatim string?

497


What is a .exe extension files? How is it similar to .dll extension files?

572


Explain the constructor in c#.

557


What is assembly and dll in c#?

460


Where do we set the min and max pool size for connection pooling?

514


What are destructors in C#?

831


Explain the features of an abstract class in net.

492


Why is static constructor called first?

476


What is generic method in c#?

485