Re: Alternative to DataSet

Tech-Archive recommends: Speed Up your PC by fixing your registry



RP,

You can figure out which is faster by using the Stopwatch class in the
System.Diagnostics namespace and timing it yourself after performing
like-for-like operations.

Assuming the third party grid you are using supports using custom
objects (the only thing that should be required for data binding is an
implementation of IList), you could create a type that represents the fields
you are showing, and then you should be able to get a collection of those,
populate a BindingList<T> with it, and then bind to that.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"RP" <rpk.general@xxxxxxxxx> wrote in message
news:759ad196-ec32-4ba7-8362-4bd5b6d5cafd@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have three columns in a Grid (Third-Party), which is populated
through code without using DB DataSource. The columns are: Date,
Amount and Type. At present I created a DataSet to fill the entire
records of the Grid to DataSet DataTable. I need to sort the records
on the basis of Date in the DataTable. To do that I used, DataView and
sorted it and than stored the sorted result in a new DataTable.

I want an alternative of this. Can three columns be stored and sorted
on a particular column if an ArrayList, Dictionary or something is
used?

Which is faster, a DataSet, ArrayList, HashTable or Dictionary?


.