a datagrid has a datatable associated with it. populate the datatable to 'input' data to the datagrid.
to update values to a database, the simplest way is to declare a dataadapter that fills a datatable in a dataset and then is declared as a datasource for the datagrid. when you need to update to the database, simply use Update on the dataadapter.
--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage