This may seem an odd question.
I have never used classes other than within simple tutorials etc.
What I am trying to do is to take text data that is in a datatable and assign certain cells or groups of cells to be a data class.
For example, say I had plumbing data I would have an overall class of part type that had things like part number, location, unit cost, manufacturer's name etc. as a top level class called, say, 'PART' and then a sub-class for specific parameters such as radius which only applies to bends or length which only applies to tubing.
The idea being that a number of cells are selected and then they are marked as containing data for an attribute within a class.
Firstly, am I on the wrong lines and secondly, if this approach is right how would I designate a cell or cells to be of a given class?
Edit: Datatable is created from strings in an opened user file containing unformatted data. It is then displayed in a datagrid.