Occurs when the current row is about to change in the DataWindow. (The current row of the DataWindow is not necessarily the same as the current row in the database.)
The RowFocusChanging event occurs just before the RowFocusChanged event.
Argument |
Description |
---|---|
sender |
String. Identifier for the client-side control. |
currentRow |
Number. The number of the row that is current (before the row is deleted or its number changes). If the DataWindow object is empty, currentrow is 0 to indicate there is no current row. |
newRow |
Number. The number of the row that is about to become current. If the new row is going to be an inserted row, newrow is 0 to indicate that it does not yet exist. |
Web DataWindow client control
Set the return code to affect the outcome of the event:
0 Continue processing (setting the current row)
1 Prevent the current row from changing
Typically the RowFocusChanging event is coded to respond to a mouse-click or keyboard action that would change the current row in the DataWindow object.
Postback calls to the server-side RowFocusChanging event The corresponding server-side event can be triggered by the following default event handlers: PBDataWindow_RowFocusChanged, PBDataWindow_ClickedDifferentRow, and PBDataWindow_DelayedClickedDifferentRow.