What is the best method to fill the GridView. using
SqlDataReader or Dataset and why
Answer Posted / vasanth
Dataset is the better option then datareader. Since dataset is disconnected, once data can be fetched and stored in dataset and then disconnect the connection and then you can bind to gridview.
In Datareader you are fetching each row and you are binding. So in middle if connection goes off, then half of the data is binded to gridview.
So dataset is better then datareader.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does the parsefloat function do?
What is an array? Give the syntax for a single and multi-dimensional array?
what are windows services?
How are methods overloaded?
What is xml serialization in c#?
What is difference between property and variable in c#?
Is a games console a computer?
Can you inherit from multiple classes in c#?
What is different between Boxing and Unboxing?
How we convert private assembly into public assembly?
Are structs faster than classes?
Can we change static value in c#?
Is Facebook a desktop application?
What is difference between class and abstract class in c#?
Is hashset ordered c#?