Create and SetTransaction

You use the Create method to create a DataWindow object dynamically at runtime. Create generates a DataWindow object using source code that you specify. It replaces the DataWindow object currently in the specified DataWindowControl or DataStore with the new DataWindow object.

The Create method destroys the association between the DataWindowControl or DataStore and the transaction object. As a result, you need to reset the control's transaction object by calling the SetTransaction method after you call Create.

To learn how to associate a DataWindowControl with a transaction object, see Chapter 5, “Working with Transaction and AdoTransaction Objects.”