Y
yoramo
Hello
I'm trying to delete a row from a dataset with the following code:
public void Update()
{
oleDbDataAdapter3.Update(dataSetGen11) ;
}
public void Delete(int iIndx)
{
dataSetGen11.Tables["Stam"].Rows.RemoveAt(iIndx) ;
Update() ;
dataSetGen11.Tables["Stam"].AcceptChanges() ;
}
the rows disappears from the datagrid but are still in the database (MS
Access).
what am I doing wrong?
Yoramo
I'm trying to delete a row from a dataset with the following code:
public void Update()
{
oleDbDataAdapter3.Update(dataSetGen11) ;
}
public void Delete(int iIndx)
{
dataSetGen11.Tables["Stam"].Rows.RemoveAt(iIndx) ;
Update() ;
dataSetGen11.Tables["Stam"].AcceptChanges() ;
}
the rows disappears from the datagrid but are still in the database (MS
Access).
what am I doing wrong?
Yoramo