CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

csla objects in multipane windows form

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 9 Replies | 1 Follower

Not Ranked
9 Posts
arquisoft posted on Tue, Apr 10 2012 2:59 PM

I'm working with csla 3.8.

I'm passing the objects by Ref from a usercontrol in one pane to other usercontrol in other

pane. I have problems with applyEdit give me a error :

Edit level mismatch in AcceptChanges.

the first  usercontrol have un object Sale. This object has  a Client object and the Client

I edit in the other usercontrol and then I pass the object Sale to the other usercontrol .

My goal is show both usercontrol at same time to the user.

thanks

 

All Replies

Top 10 Contributor
1,765 Posts
Suggested by JonnyBee

You must Bind/Unbind in a proper way before you can call save on the object. 

Look at the BindingSourceExtension in CslaContrib.

Also read my blog post here:
http://jonnybekkum.wordpress.com/2009/10/20/forms-databinding-the-magic-sequence-of-binduiunbindui/

Jonny Bekkum, Norway CslaContrib Coordinator

Not Ranked
6 Posts

I'm passing the objects by Ref from a usercontrol in one pane to other usercontrol in other.

 

 

 

 

las vegas property management companies
Not Ranked
9 Posts

thanks very much.

I will use pattern MVC to my multipane UI . Of Course model is my csla Objects.

I am right?.

Top 10 Contributor
1,765 Posts
JonnyBee replied on Fri, Apr 13 2012 11:51 AM

Which UI platform is your application using?

Jonny Bekkum, Norway CslaContrib Coordinator

Not Ranked
9 Posts

winforms.

 I coud use :

 

Me.CslaActionExtender1.ResetActionBehaviors(mIngreso)  ?

Not Ranked
9 Posts

i downloaded cslacontrib but only has OBJECT CACHING??

Thanks

 

Top 10 Contributor
1,765 Posts

Goto Source Code tab and download latest source.

http://cslacontrib.codeplex.com/SourceControl/list/changesets

 

 

 

Jonny Bekkum, Norway CslaContrib Coordinator

Not Ranked
9 Posts

Thanks very much ( I am chilean and I dont speak english very well, my native language is spanish) .

I `d like  use mvc in my projects (winform) . I could user your contribute but I want read some document yours to understand the model.

thanks

 

 

Top 10 Contributor
1,765 Posts

Recommended reading is

DataBinding FAQ   : http://windowsclient.net/downloads/folders/applications/entry1302.aspx
DataGridView FAQ : http://windowsclient.net/downloads/folders/applications/entry1304.aspx
Designer FAQ         : http://windowsclient.net/downloads/folders/applications/entry1332.aspx

I can also recommend the Data Binding book from Brian Noyes:
http://www.amazon.com/Data-Binding-Windows-Forms-2-0/dp/032126892X

Plus the samples in CslaContrib and Csla.

I have never used MVC for a Windows Forms application so I have no references for that.

Jonny Bekkum, Norway CslaContrib Coordinator

Page 1 of 1 (10 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems