When I initialize my program I need to load from several sources of data
from files which are in a table form- in each set of data they share fields
(like say name address phone). I used to load them into a Hashtable keyed by
ID where the value is a class that has all the fields required (name,
address, etc...)
Now after discovering the power of DataTables and DataGrids I have decided
to load my data into that format instead, but much of my program still
depends on those concrete classes I had which had those fields and methods
specific to the data I load. With DataTables, that data had to be loaded into
this abstract DataRow which has no methods or fields specific to the data. So
now I'm wondering should I still keep my Hashtable of classes (Which begs the
question: when loading a DataRow does it actually copy my data from my
Hashtable or does it reference it?) or is there a way to customize DataRow so
I can have those specific fields and methods in the DataTable so I can get
rid of this HAshtable?