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
What is difference between string and stringbuffer in c#?
What is unrecognized escape sequence in c#?
For methods inside the interface why can’t you specify the accessibility modifier?
Are c# generics the same as c++ templates?
Why dictionary is used in c#?
What are the Types of values mode can hold session state in web.config
Can a string be null c#?
Can we inherit class that contains only one private constructor?
How do destructors and garbage collection work in c#?
Describe ado.net?
What is the difference between an application domain and a process?
What is the difference between “finalize” and “finally” methods in c#?
Explain anonymous type in c#?
How can I process command-line arguments?
Can partial class be inherited?