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 to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


can it possible to acees the virthual method using the override method object? plz give me the example

2 Answers  


How do you sort an array in c#?

0 Answers  


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

0 Answers  


what is the purpose of interface in c#.net

6 Answers  


What is polymorphism in c sharp?

0 Answers  


give an example for suspending, resuming, and stopping a thread ?

1 Answers   GCI,


Where does the dispose method lie and how can it be used to clean up resources?

2 Answers   TCS, Wipro,


Why do we need ienumerable in c#?

0 Answers  


C# is case sensitive, what is mean by case sensitive

3 Answers  


Any .net training centers available near hitech city , hyderabad?

2 Answers  


What are strongly typed objects?

0 Answers  


Categories