G
Guest
The question I have is how to connect an instance variable to a binding
source. In the IDE, I can create a new Data Source pointing to an object in
my class. It creates the source based on the definition of the class, not a
specific instance of that class on, say, a form. I can drag that Data Source
definition onto the form and create a DataGrid and an associated
BindingSource object. Great. Sweet. But how do I link that DataGrid to the
instance of that object in the form, so that data in the instance of the
object is displayed in the grid, and changes in the grid are serialized to
the object? I see there is a DataSource property in the BindingSource, but
in the visual editor, that is set to the DataSource in the solution...
source. In the IDE, I can create a new Data Source pointing to an object in
my class. It creates the source based on the definition of the class, not a
specific instance of that class on, say, a form. I can drag that Data Source
definition onto the form and create a DataGrid and an associated
BindingSource object. Great. Sweet. But how do I link that DataGrid to the
instance of that object in the form, so that data in the instance of the
object is displayed in the grid, and changes in the grid are serialized to
the object? I see there is a DataSource property in the BindingSource, but
in the visual editor, that is set to the DataSource in the solution...