Using other DataWindow methods

There are many more methods you can use to perform activities in DataWindow controls. Here are some of the more common ones:

Table 2-3: Common methods in DataWindow controls

Method

Purpose

AcceptText

Applies the contents of the edit control to the current item in the DataWindow control

DeleteRow

Removes the specified row from the DataWindow control, placing it in the Delete buffer; does not delete the row from the database

Filter

Displays rows in the DataWindow control based on the current filter

GetRow

Returns the current row number

InsertRow

Inserts a new row

Reset

Clears all rows in the DataWindow control

Retrieve

Retrieves rows from the database

RowsCopy, RowsMove

Copies or moves rows from one DataWindow control to another

ScrollToRow

Scrolls to the specified row

SelectRow

Highlights a specified row

ShareData

Shares data among different DataWindow controls.

Update

Sends to the database all inserts, changes, and deletions that have been made in the DataWindow control

Some, but not all, of these methods are available for the Web DataWindow client control, server component, or both. Each development environment provides a reference list of methods.

For complete information on DataWindow methods, see the DataWindow Reference.