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 / hardit

if we are using " reader " in data retrieving ,it will be faster as it will only read values required.

but in the case of dataset which is a very heavy object it will take more time corresponding to reader in for loop.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c# constructors the same as c++ constructors?

517


What is difference between array and collection in c#?

438


What are controls in c#?

471


What is a dynamic assembly?

523


What is sealed class in c#?

517






What is a method c#?

470


In dynamic link library, which api is used for load library?

521


What is a trace and asset? Explain some differences?

697


What is a generic method?

485


What is the use of iqueryable in c#?

473


What is addressof operator?

517


What can we do to handle multiple exceptions?

551


How to block a class from being inherited further?

479


Explain the various types of classes used in c#?

497


Differentiate between sqlclient oledb and providers?

497