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 new and override in c#?

868


Define method overloading in c#?

974


What is concrete class in c# with example?

972


What is Delegate and what is it used for ?

1026


Explain how to implement delegates in c#.net

954


What are the different types of literals in c#?

1037


How to use exception handling in stored procedure?

1026


Illustrate namespaces in c#?

1001


How do you mark a method obsolete?

1001


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

873


What is the use of the dispose method in C# ?

966


What is a nullreferenceexception?

1018


Can we change static variable value in c#?

921


Which is better javascript or c#?

911


Explain anonymous type in c#?

948