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

Write a program to find the angle between the hours and minutes in a clock

491


Define a jagged array in c#?

482


How much time will it take to learn unity?

467


What is public or shared assemblies ?

547


What Is A Multicast Delegate?

545






Why reflection is used in c#?

491


What is use of console?

460


What is sorting in c#?

517


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1470


What is data binding c#?

521


What is the difference between a variable and a literal?

533


What is xaml file in c#?

530


What is equal c#?

502


What is deferred execution?

475


Define encapsulation?

650