A
agassi
hi guys,
i've already sent a request concerning row deletion in a datagrid.my
problem now is that i've succeded to delete a row from the datagrid,
however the selected row is not actually deleted from the
database.(i'm working with visual C++.NET). here is my code:
mytable->Rows->RemoveAt(dataGrid1->CurrentRowIndex); //mytable is a
DataTable
count = count -1; //number of rows in the datagrid
mydataset->AcceptChanges();
mycommandbuilder->GetDeleteCommand(); //mycommandbuilder is an
OleDbCommandBuilder
myadapter->Update(mydataset); //myadapter is a DataAdapter
dataGrid1->Refresh();
i've already sent a request concerning row deletion in a datagrid.my
problem now is that i've succeded to delete a row from the datagrid,
however the selected row is not actually deleted from the
database.(i'm working with visual C++.NET). here is my code:
mytable->Rows->RemoveAt(dataGrid1->CurrentRowIndex); //mytable is a
DataTable
count = count -1; //number of rows in the datagrid
mydataset->AcceptChanges();
mycommandbuilder->GetDeleteCommand(); //mycommandbuilder is an
OleDbCommandBuilder
myadapter->Update(mydataset); //myadapter is a DataAdapter
dataGrid1->Refresh();