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
List some of the basic string operation?
Why do we use class in c#?
What are the differences between value types and reference types?
Is static thread safe?
What is the difference between struct and class c#?
What is the difference between public, static, and void?
In which way a two-dimensional array declared in C#?
What is function c#?
What is the difference between string and string in c#?
How are delegates chosen?
Is string mutable in c#?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
Is c# lazy thread safe?
What is datarelation c#?
What does break do in loop?