Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

Looping through datagridview and dataset ?

Hi All,

I want to know which one is faster ?

Thank you.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

I think the critical issue would be amount of data you trying to scan through via looping. it could also based on your logic of scanning to produce variable results.

any reasons you want to looping through datagridview and/or dataset?
Depends on what you need from the loops, but in general the fastest way would be to work with the Data, which means the Dataset (assuming your DGV is based on a Dataset, of course).
Avatar of emi_sastra
emi_sastra

ASKER

Hi Ryan,

- any reasons you want to looping through datagridview and/or dataset?
My datagridview is bound to dataset.

Sometimes I want to looping it to do something.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi All,

My understanding from your point of view is using dataset should be faster than gridview in terms of using plain data.
We could use LINQ to search if using dataset.

Thank you very much.