I have a customised tab control that creates tab pages and controls at run time based upon the data in a xml file.
Within the application I fill a data set, add an instance of the customised tab control to the visible form and call the method BuildTabPages shown below.
The dataset already has data included and the data is presented in detail format (not in a datagrid).
The xml file is read into a dataset and the itemRow object is the current row of the relevant datatable of the xml based dataset.
When the tab control shows, if the dataset.table(0) has data the first record is shown in the controls correctly.
If I add a row I can move to the row and show the data for that row.
If I change the data in any of the text boxes and call an update of the data set, collecting a new datatable using the dataset.tables(0).getchanges method passing the modified state as the parameter it returns nothing for the new table so no data is updated.
Why is this?
Within the application I fill a data set, add an instance of the customised tab control to the visible form and call the method BuildTabPages shown below.
The dataset already has data included and the data is presented in detail format (not in a datagrid).
Code:
Public Sub BuildTabPages(ByRef bindingDataSet As DataSet)
...
CType(newControl, TextBox).DataBindings.Add( _
"Text", bindingDataSet.Tables(0), itemRow.Item("Field"))
The xml file is read into a dataset and the itemRow object is the current row of the relevant datatable of the xml based dataset.
When the tab control shows, if the dataset.table(0) has data the first record is shown in the controls correctly.
If I add a row I can move to the row and show the data for that row.
If I change the data in any of the text boxes and call an update of the data set, collecting a new datatable using the dataset.tables(0).getchanges method passing the modified state as the parameter it returns nothing for the new table so no data is updated.
Why is this?