There are many more methods you can use to perform activities
in DataWindow controls. The more common ones are listed in Table 9-3.
Table 9-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.
|
You can see a complete list of DataWindow
methods in the PocketBuilder Browser.