Associating the Transaction object with a DataWindow control or DataStore

You use the SetTransaction method to associate the Transaction object with a DataWindowControl, WebDataWindowControl, or DataStore. After calling SetTransaction, you can perform database activities:

[Visual Basic]
// In form’s load method
dwCustomer.SetTransaction(TR1)
dwCustomer.Retrieve()
...
// In an Update button
dwCustomer.UpdateData()
TR1.Commit()
dwCustomer.ResetUpdateStatus()

[C#]
// In form’s load method
dwCustomer.SetTransaction(TR1);
dwCustomer.Retrieve();
...
// In an Update button
dwCustomer.UpdateData();
TR1.Commit();
dwCustomer.ResetUpdateStatus();