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

Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

509


What are the properties of string?

490


Can you have an array of arrays?

505


How to override a function in c#?

547


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

474






Explain the process of abstraction with an example?

510


Explain what is an interface in c#?

521


What is alias in c#?

537


What are the Types of optimization and name a few and how do u do?

527


List down the differences between public, static and void keywords?

469


What is the purpose of c#?

552


What is array and types of array in c#?

484


Distinguish between a class and struct?

513


what is main function of alternate teamplate of datalist?

1645


Is string nullable in c#?

455