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

Answer Posted / saurabh sharma

If u r presenting small amount of data, u can pick any option. It will take almost same time. But if u want to load heavy data, for example 50000 rows, use sql data paging and objectdatasource or xmldatasource to fill grid view. use paging option of objectdatasource or xmldatasource to switch between pages.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are structs faster than classes?

619


What is the difference between finalize() and dispose()?

575


What will be the output of the following code?

590


What is private class in c#?

569


What is an example of a delegate?

597






What are the different types of comments in c#?

573


What are Types of assemblies that can be created in dotnet

660


How to properly clean up excel interop objects?

592


What is a static in c#?

576


What is addressof operator?

614


What is int32 in c#?

583


What is thread in c#?

626


What is property c#?

594


What is default class in c#?

577


Can you use foreach iteration on arrays in c#?

686