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
Can constructor have return type c#?
How can I develop an application that automatically updates itself from the web?
What are the extension methods in c#?
What does immutable mean in c#?
Is c# good for games?
what is boxing and unboxing?can we initialize unboxing directly?
What is class sortedlist underneath?
Explain a MSIL ? Why is it appreciated by all developers?
What are value types in c#?
Difference between abstract classes and interfaces
Is it possible to have a static indexer in c#?
what is difference between destruct or and garbage collection ?
How many bytes is an int?
What is the difference between static and private constructor?
What is class in oops with example in c#?