ChildForm BO Becomes Dirty Even though I havent changed anything


Author
Message
Jon Neale
Jon Neale
StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)
Group: Forum Members
Posts: 11, Visits: 93
Hi,

I've created a form with a ListView and associated a child form used the business object translations to map the parent BO to the child BO. So far I've only got the edit bit working but you can go in and change the details and it all works ok.

I have a couple of issues which I'm stuggling with a bit:

I've added an Ok and Cancel button onto the child form but when I click the cancel it still asks me to save the changes. Looking at this further it seems the child form bo is dirty before we make any changes on the form. What would be causing this? Am I going about this in the correct way?

Also when I go back to my Parent form one of the other BO's seems to have been cleared out? Any hints on what this could be?

Thanks

Jon

Reply
Jon Neale
Jon Neale
StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)StrataFrame Beginner (41 reputation)
Group: Forum Members
Posts: 11, Visits: 93
Hi

Thanks for your reply.

I have compared what i've done against the stratflix sample and cant see anything obvious. I think I have two different problems one is that for some reason the bo of the childform is dirty without me making any changes on the form. I have seen a thread about datepickers causing issues so maybe need to look at this a bit more.

The other is the cancel button. I thought, and from the look of the Strataflix sample, the cancel button just drops you back to the parent form ignoring if any changes have taken place. I cant seem to get it to do this.

This is what I have in the Cancel Button click event:

DialogResult = System.Windows.Forms.DialogResult.Cancel;

I am only a newbie, just trialing the product, so its not the end of the world just like to know what I'm doing wrong.

Thanks again for your feedback.

Jon

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search