Database - Delete record

Hi,

I have a database and a datagrid to view the data. Now I want to delete a record in the recordset. I use datagrid.RemoveCurrent() to delete the currently selected record. So far it works. But when I restart my program it still shows that record.

What do I have to do to make this delete-action permanent

Greets,

John


Answer this question

Database - Delete record

  • RajLakamana

    Hi,

    What datasource are you binding in your datagrid Be sure that this datasource (DataAdapter maybe) should contain a DeleteCommand definition to be able to send your deletions in your datagrid to the database...

     

     

    cheers,

    Paul June A. Domag



  • Database - Delete record