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

Answers were Sorted based on User's Feedback



In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)lo..

Answer / nanak kumar behera

Databinding direct using Dataset

Is This Answer Correct ?    20 Yes 1 No

In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)lo..

Answer / velmahesh

Answer is , Databinding direct using Dataset..

Reason for if we store database values to dataset. then
values are binding shortly..

but, if use the for loop, that statement will execute
upto limit. so, it will take some seconds..

Is This Answer Correct ?    9 Yes 2 No

In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)lo..

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

In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)lo..

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

More C Sharp Interview Questions

How do you comment out code in c#?

0 Answers  


Please explain the basic string operations used in c#?

0 Answers  


Show us in simple steps to create setup & deployment project for windows application?

0 Answers   QuestPond,


What is xor operator in c#?

0 Answers  


Why is it a bad idea to throw your own exceptions?

4 Answers  






We cannot create instances of static classes. Can we have constructors for static classes?

0 Answers  


What is a data set in c#?

0 Answers  


How Reflection is used and what it's significance ?

0 Answers   HCL,


Which config file has all the supported channels/protocol?

0 Answers  


Explain About Global.asax

0 Answers   Keane India Ltd,


Explain the difference between proc. Sent by val and by sub?

0 Answers  


What does assert() do?

1 Answers   Wipro,


Categories