StrataFrame Forum

Binding - user control

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

By Fabian R Silva, - - 2/9/2012

I created a usercontrol (IBusinessBindable) that have a property "IdBinding", this control have a textbox that when someone type here, a description appears and idbinding change, I see that the business object only refresh the related field only when the control lost focus, I tried put this.Validate() on the setter of idBinding but this doesn't works, this  doesn't refresh the field

What I'm doing wrong? how I can force to refresh the field on the business object field when the binded property change without have to lose focus on the user control? 

I need this because when the user change data on this user control and saves, the control doen't lose focus and the BO field that is binded to the user control is not refreshed / changed on the data side (sql)

Thanks.
By Fabian R Silva, - - 2/13/2012

I ended using a workaround in post 30229, basically creating a dummy hidden textbox, and putting in the form's beforesave event a setfocus on this dummy textbox.

thanks.
By Ivan George Borges - 2/13/2012

Glad it helped, Fabian. Wink