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

What does string format do?

477


What is strongly typed view?

508


What are the advantages of using assemble language programming?

524


What is data dictionary in c#?

491


What is overloading with example?

501






What is difference between struct and class in c#?

474


Is a char?

460


Is c# a keyword?

497


What is 8 bit signed integer?

483


Explain the clr triggers?

526


What is the diff between System.String and System.Text.StringBuilder classes?

530


What is reference c#?

570


what is the difference between convert.tostring() and tostring() functions ?

578


What is reflection c#?

472


What are custom exceptions?

533