T
Tom Archer
Do I have to use the CommandBuilder in order to update a
disconnected DataSet or is there another way?
Here's how my MC++/MFC code currently works:
View::OnInitialUpdate
// Construct SqlConnection
// Construct SqlDataAdapter (stored at view level)
// Construct SqlCommandBuilder (stored at view level)
// Open Connection
// Constuct DataSet (stored at view level)
// Fill DataSet
// Close Connection
// Construct desired DataTable (stored at view level)
View::OnAddRecord
Construct and add DataRow object to DataTable
View::OnDestroy
Call Adapter::Update
disconnected DataSet or is there another way?
Here's how my MC++/MFC code currently works:
View::OnInitialUpdate
// Construct SqlConnection
// Construct SqlDataAdapter (stored at view level)
// Construct SqlCommandBuilder (stored at view level)
// Open Connection
// Constuct DataSet (stored at view level)
// Fill DataSet
// Close Connection
// Construct desired DataTable (stored at view level)
View::OnAddRecord
Construct and add DataRow object to DataTable
View::OnDestroy
Call Adapter::Update