Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In c#.Net Application For DataGridview binding which method is faster in below two case?Why..?
1)looping-Using For loop
2)Databinding direct using Dataset

Answer Posted / shir

Using for loop is faster since the data will be populated as
soon as it is read using the data reader which is one way
read only process.

But when data set is used,
1. It internally makes use of the data reader in order to
populate the data set.
2. It takes huge amount of data enire amount of which might
not be required.
3. Later we will have to iterate throught DS to fill the
data grid

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between string and stringbuffer in c#?

892


What is unrecognized escape sequence in c#?

875


For methods inside the interface why can’t you specify the accessibility modifier?

904


Are c# generics the same as c++ templates?

863


Why dictionary is used in c#?

900


What are the Types of values mode can hold session state in web.config

943


Can a string be null c#?

841


Can we inherit class that contains only one private constructor?

890


How do destructors and garbage collection work in c#?

877


Describe ado.net?

970


What is the difference between an application domain and a process?

937


What is the difference between “finalize” and “finally” methods in c#?

876


Explain anonymous type in c#?

911


How can I process command-line arguments?

917


Can partial class be inherited?

861