PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
Manipulating Records
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
Manipulating Records
![]() |
Manipulating Records |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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/ "Radi Radichev" <radi.radichev@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! > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

