StrataFrame Forum

Another child-form-problem

http://forum.strataframe.net/Topic32324.aspx

By Thomas Holste - 11/29/2013

Hi there,

i have a simple form containig a business-binding-source a BO and a datagridviw. From this form I am calling a childform with the childform-dialog to add or edit a record. Here's the code for adding:



KundenBO1.Add()

If Childkunden.ShowDialog = DialogResult.OK Then

KundenBO1.Save()

Else

KundenBO1.Undo(MicroFour.StrataFrame.Business.BusinessUndoType.CurrentRowOnly)

End If



Works fine, but if I change the sort-order by clicking the datagridviews header, the synchronisations seems to get lost and if I try to add a new record, I get an already existing one to edit and the newly added record appears somewhere else in my grid. Why is this happening?

Best regards and thanks in advance

Thomas