SetRow

Description

Sets the current row in a Web DataWindow client control.

Applies to

Web DataWindow client control

Syntax

number objdwcontrol.SetRow ( number row ) 

Argument

Description

objdwcontrol

A reference to a Web DataWindow client control in which you want to set the current row

row

The row you want to make current

Returns

Returns 1 if it succeeds and -1 if an error occurs. If row is less than 1 or greater than the number of rows, SetRow fails.

Usage

SetRow moves the cursor to the current row but does not scroll the Web DataWindow client control.

NoteAvoiding infinite loops Never call SetRow in the ItemChanged event or any of the other events that it might trigger. Such a recursive call can cause a stack fault.