Binding a textbox in a dataset with multiple tables
From: Gregory Paff (gpaff_at_ptcllc.com)
Date: 05/19/04
- Next message: runningdog: "Re: Parent-Child Bindings"
- Previous message: Pat Cantey III: "Using a databound datasource in an Asynchronous method call..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 May 2004 13:43:41 -0400
I have a Dataset with 4 tables (1 master and 3 child)
Table A <- Table B
Table A <- Table C
Table A <- Table D
On the form there is a table control with 4 tabs
Tab1 consists textboxes from Table A
Tab 2 consists of a datagrid with Table B
Tab 3 consists of a datagrid with Table C
Tab 4 consists of a multiline TextBox representing from Table D
I am in experiencing a problem with the binding of a textbox in tab D
1) the data disappears from the textbox when switching tabs
2) when saving the data is never sent back to the dataset
I am binding the textbox by the relationship:
txtNote.DataBindings.Add("Text", dsReport, TableA.TableATableB.Note");
I can get the table to not disappear by setting the txtNote.BindingConext =
this.BindingContext. However this does allow the dataset to be updated when
I call EndCurrentEdit. It seems like it is never creating a detached row to
populate. Is this something I need to handle manually?
- Next message: runningdog: "Re: Parent-Child Bindings"
- Previous message: Pat Cantey III: "Using a databound datasource in an Asynchronous method call..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|