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 new and override in c#?
Define method overloading in c#?
What is concrete class in c# with example?
What is Delegate and what is it used for ?
Explain how to implement delegates in c#.net
What are the different types of literals in c#?
How to use exception handling in stored procedure?
Illustrate namespaces in c#?
How do you mark a method obsolete?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What is the use of the dispose method in C# ?
What is a nullreferenceexception?
Can we change static variable value in c#?
Which is better javascript or c#?
Explain anonymous type in c#?