Databinding in c# - Important

  • Thread starter Thread starter Hemang Shah
  • Start date Start date
H

Hemang Shah

Hello

All the samples I found are based on datagrid for the child table.

What if I don't want the child records to be displayed in a datagrid, but in
their own data bound controls like "text box, combo & list boxes). And I
want to provide a second level of navigation buttons to traverse those child
records in the child table.

I'm sure this is possible, but I can't seem to find any sample on it.

Please let me know if you can throw any light on it.

Thank You
 
You can use the BindingContext and the BindingManagerBase classes to
accomplish this... using the Control.DataBindings.Add( , , )

I don't have any sample off of the top of my head but if you put in
BindingContext and BindingManagerBase in google, you'll find some
 
Hemang,

It's the same as if you were binding to the grid. When you add the
binding for the control to the child table, you set the data source to the
relation, not to the child table itself.

Hope this helps.
 
Back
Top