mcupryk 0 Newbie Poster

If you want to insert DON'T do this

Dim dr As DataRow = CType(bm.Current, DataRowView).Row
Dim addform As New AddTransOverride(dr)
Dim retval As DialogResult = addform.ShowDialog()

the above will modify the current row you are on, but do somethiing like this

Dim dr As DataRow = bm.addnew 'or bm.new I don't have vs on this machine so I can't check
Dim addform As New AddTransOverride(dr)
Dim retval As DialogResult = addform.ShowDialog()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.