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 the difference between C# 3.5 and C# 4.0?

531


What is the difference between asp net and c#?

488


Describe ado.net?

571


What is an Interface in C#?

536


What is the difference between dispose() and finalize() methods in c#?

506






What is c# console application?

475


What is cosole application?

563


What are nested classes in c#?

546


Why is static constructor called first?

476


Is unboxing an implicit conversion?

529


Can constructor be overloaded in c#?

470


Can int be null in c#?

494


Does c# have primitives?

472


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

514


Is dictionary a collection?

467