I currently have a BindingSource object on my form that is populated by a class of properties. Each control has its DataBinding EditValue set as the BindingSource.Field.
However the BindingSource Control is giving design time render issues and my controls become invisible and the only way to see them is to close the form class and re-open it. When i delete the BindingSource control i dont have this render issue.
I thought it would be better to create the BindingSource at runtime and set each controls DataBinding EditValue to the BindingSource but i cant get it right. If you look at this image, you can see the EditValue is set to the xxxBindingSource._Finish-color2 field. In code, EditValue is not available as an assignable property
i can create the BindingSource when my form opens
Private bs As New BindingSource
I can assign a BindingList as the DataSource (the same binding list i am assigning to the BindingSource Control Datasource)
bs.DataSource = JBindingList
I tried this appraoch but nothing happens-
TxtType.DataBindings.Add(New Binding("Text", bs, "_Finish_color2"))
but nothing happens so, what is the right way to assign a BindingSource field to a control in code?