Hi,

I want to use datagrid to add/modify/delete record using datagrid.
I load some table in dataset then set datagrid.datasourse = dataset.

I tried to add record from datagrid, but it didnt work. It shows errors
that has not new added records. If I add new row into table, It shows
duplicate error.
my some code here..
dataadapter.fill(dataset, tb1)
dataGrid.dataSource = dataset.table("tb1")

then i click add button.
dataset.table("tb1").getchanges(rowstate.added)
dataAdapter.InsertCommand=("Insert into tb1 (@id,@name,@age)")
*******
I've set dataAdapter parameters and value here
*******
dataAdapter.update(dataset, "tb1")
dataset.table("tb1").acceptChange()

Thanks,
Kwok