Jean,
Although this sample gives answers on some difficult questions where the
answers from are not that easy to find, is it easy to try, so do that.
http://www.windowsformsdatagridhelp....3-a3539697edbd
Know that there is in Net and especially not VBNet almost never "a" best
method to do something.
A datatable in this sample is a class (object in fact) that can exist inside
a dataset. A dataset is easy to fill and to update (this include inserts,
deletes and updates) from a database using an adapter.
However to get the power of a datagrid, play a little with this sample.
Beside this more general confection view you can use your own "style" with
it.
To give you some more information about a dataset.
A dataset references to a collection of datatables
Those datatables reference forever back to a dataset to their parent (and
therefore as all elements in a dataset can only exist in one dataset)
Beside the datatable holds the dataset relations between tables and there
columns.
A datatable holds references to columns, which are a description part and
rows which holds the references to the data. That data exist inside the rows
as items. It are all seperate classes and therefore everything is object.
Beside that is very important the dataview which is to use the data in the
datatable filtered or sorted.
I hope this gives an idea.
Cor