Home All Groups Group Topic Archive Search About
Author
11 Feb 2006 8:25 AM
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!

Author
11 Feb 2006 10:06 AM
Miha Markic [MVP C#]
Use the appropriate delete/insert(or add) method on source itself.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Show quote
"Radi Radichev" <radi.radic***@uni-jena.de> wrote in message
news:eT8MATuLGHA.1536@TK2MSFTNGP11.phx.gbl...
> 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!
>
Author
11 Feb 2006 10:12 AM
Cor Ligthert [MVP]
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

AddThis Social Bookmark Button