Seems to be a bug in the way the Designer sets up bindings

Ok lets say I have a dataset dsEvent that contains a table Event that has a field called Name. Then I can set up a databinding by creating:

...System.Windows.Forms.Binding("Text",this.dsEvent.Event,"Name",true)

wherethis.dsEvent.Event is the datasource and Name is the dataMember and this works fine, but when I get the designer to automate this it creates the line:

...System.Windows.Forms.Binding("Text",this.dsEvent,"Event.Name",true)

which doesnt work. Whats going on here? How come the designer doesnt work properly in this instance? By the way Im using MSVS Beta2.

-Mike


[1377 byte] By [mikeyd] at [2007-12-16]
# 1
hmmm, everything works when using a bindingSource. Still strange that the other way doesnt work properly

-Mike

mikeyd at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2

What doesn't work with the first solution? It may be the table is not filled but I'm not sure. This should work independent of using a BindingSource.

Joe Stegman
The Windows Forms Team
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.

JoeStegman at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...