Winforms - a strange problem a with simple binding

Posted by Adi Barda on Stack Overflow See other posts from Stack Overflow or by Adi Barda
Published on 2010-01-24T10:07:56Z Indexed on 2010/04/30 2:07 UTC
Read the original article Hit count: 527

Filed under:
|

Hi Guys,

It's hard for me to clearly describe my problem but I'll try. I have a UserControl1 which contains UserControl2 which contains several WinForms controls (most of them DevExpress). I do simple binding to these controls to my datatable fields. So far everything works fine. When I move the focus to a record in the table (by navigating in a grid rows for example) the binding works great, the concurrenmcy manager moves the cursor and everything reflects right in the bounded controls.

The problem starts when I add new user UserControl3 above UserControl2 and make UserControl2.Visible = false. Now UserControl3 is shown and UserControl2 exists but not shown. Now when I set UserControl2.Visible = true to show it again the simple binding stops working! I navigate in the grid but either the ConcurrencyManager stops working or the simple binding becomes disconnected.

My question: Are there any known issues/ best practices with the binding & concurrency manager?

Thanks a lot,
Adi Barda

© Stack Overflow or respective owner

Related posts about binding

Related posts about winforms