StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
How to get changes to a property on a control to update BO when using...
How to get changes to a property on a control to update BO when using IBusinessBindable
Post Reply
Like
0
How to get changes to a property on a control to update BO when using...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 2K,
Visits: 6.6K
I'm still not understanding how to get SF to update data if I add the IBusinessBindable interface to a control. My initial understanding was that I needed an event that changed after the bound property changed. I.e. if my control had a property called MyProperty that I wanted to be bindable (i.e. the property would be loaded with data by the BO and changes to the property would update the BO), I'd need a MyPropertyChanged event:
' The property that can be bound via SF
Private _myProperty As Integer
Public Property MyProperty() As Integer
Get
Return _myProperty
End Get
Set(value As Integer)
_myProperty = value
Me.OnMyPropertyChanged()
End Set
End Property
' The event that occurs after the property is changed
Public Event MyPropertyChanged As EventHandler
Protected Overridable Sub OnMyPropertyChanged(e As EventArgs)
Raiseevent MyPropertyChanged(Me,e)
End Sub
However, this didn't work.
Next I noticed that in the SF RichTextbox, you implemented the INotifyPropertyChanged interface, so I tried that. I created an event called PropertyChanged and raise that event in the set of any properties I want to be bindable. Again it didn't update the BO.
How do I get the BO to know when the property changes, so it updates itself with the new data?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
How to get changes to a property on a control to update BO when using...
Greg McGuffey
-
17 Years Ago
I found the problem I was having. The control was never firing either...
Greg McGuffey
-
17 Years Ago
Hehe, yes, you'll have to bubble the event up for it to work. However,...
StrataFrame Team
-
17 Years Ago
Yep, its all clear now. :D And its working :w00t:
Greg McGuffey
-
17 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search