Lightweight Collections
-
I have a grid control that takes an IList, ITypedList or IBindingList object as a DataSource. I'm currently using a System.Data.DataTable and the performance is pretty dismal. I've isolated the bottle neck as being the build of the DataTable. My question is, which of the various data collections is the lightest weight and most efficient? Thanks. -- modified at 14:10 Thursday 8th December, 2005
-
I have a grid control that takes an IList, ITypedList or IBindingList object as a DataSource. I'm currently using a System.Data.DataTable and the performance is pretty dismal. I've isolated the bottle neck as being the build of the DataTable. My question is, which of the various data collections is the lightest weight and most efficient? Thanks. -- modified at 14:10 Thursday 8th December, 2005
An IList implementation is the lightest of the three. But, why is filling your DataTable taking so long? I ask because if it's an inefficient process, you'll run into the same lag when filling an IList object. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -- modified at 17:18 Thursday 8th December, 2005