Hi
I can create a DataGridView bound to a datatable, which queries a single table, or even multiple tables via a dataset (xsd). I want to use a query to return data from a foreign table, where a related price is held. I need to display this [readonly] price, so the user can make the right changes to the 'main' data, based on the price it references. However, I cannot get updates to work, as the XSD will not create an update routine for the datatable as a whole, as it queries data outside of the table. I can manually create update commands, but they only except single parameters on a per row basis, rather than taking a datatable, to update changes. Is it possible to achieve what I want?...
Sub Load
adapter.fill(QueriedDataTable)
dgvMain.datasource = QueriedDataTable
End Sub
Sub Update
adapter.update(QueriedDataTable)
End Sub
Thanks in advance
John
I can create a DataGridView bound to a datatable, which queries a single table, or even multiple tables via a dataset (xsd). I want to use a query to return data from a foreign table, where a related price is held. I need to display this [readonly] price, so the user can make the right changes to the 'main' data, based on the price it references. However, I cannot get updates to work, as the XSD will not create an update routine for the datatable as a whole, as it queries data outside of the table. I can manually create update commands, but they only except single parameters on a per row basis, rather than taking a datatable, to update changes. Is it possible to achieve what I want?...
Sub Load
adapter.fill(QueriedDataTable)
dgvMain.datasource = QueriedDataTable
End Sub
Sub Update
adapter.update(QueriedDataTable)
End Sub
Thanks in advance
John