About DataWindow controls

The DataWindowControl is a visual container for DataWindow objects in a Windows application. It provides properties, methods, and events for manipulating the data and appearance of the DataWindow object. The control is part of the user interface of your application.

You also use DataWindow objects in WebDataWindowControls, which are used in ASP.NET applications; in the nonvisual DataStore; and in child DataWindows, which are used in drop-down DataWindows and with the composite presentation style. Much of the information in this chapter applies to all of these object types.

For more information about DataStores, see Chapter 4, “Working with DataStores.” For more information about the WebDataWindowControl, see Chapter 9, “Using Web DataWindows.” For more information about drop-down DataWindows and composite DataWindows, see the DataWindow Designer User’s Guide.

The simplest way to use a DataWindow object in an application is to use drag-and-drop to add a DataWindow control to a form, then associate that control with the DataWindow object. You can also create a DataWindow control in your code using its constructor, either statically or dynamically. For more about dynamic DataWindows, see Chapter 7, “Dynamically Changing DataWindow Objects.”