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

Can constructor have return type c#?

1051


How can I develop an application that automatically updates itself from the web?

949


What are the extension methods in c#?

952


What does immutable mean in c#?

1009


Is c# good for games?

919


what is boxing and unboxing?can we initialize unboxing directly?

939


What is class sortedlist underneath?

1004


Explain a MSIL ? Why is it appreciated by all developers?

1176


What are value types in c#?

950


Difference between abstract classes and interfaces

1040


Is it possible to have a static indexer in c#?

1021


what is difference between destruct or and garbage collection ?

989


How many bytes is an int?

959


What is the difference between static and private constructor?

1031


What is class in oops with example in c#?

974