Manipulating Records

  • Thread starter Thread starter Radi Radichev
  • Start date Start date
R

Radi Radichev

Hi All!
How can i delete or insert a record without using the bindingNavigator
control? I can move through the records with the binding source but i can't
find out how to delete and insert records.... Any tips? Thanks!
 
Radi,

There are a lot of possibilities the most simple ones are

DataTable.Add.Row(DataTable.NewRow);

DataTable.Rows(x).Delete();

Be aware not to use any Remove statement, that has another purpose than
deleting from a database.

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top