GetClickedColumn

Description

Obtains the number of the column the user clicked or double-clicked in a Web DataWindow client control.

Applies to

Web DataWindow client control

Syntax

number objdwcontrol.GetClickedColumn ( )

Argument

Description

objdwcontrol

A reference to a Web DataWindow client control

Returns

Returns the number of the column that the user clicked or double-clicked in objdwcontrol. Returns 0 if the user did not click or double-click a column (for example, the user double-clicked outside the data area, in text or spaces between columns, or in the header, summary, or footer area).

Usage

Call GetClickedColumn in the Clicked event for a Web DataWindow client control.

When the user clicks on the column, that column becomes the current column after the Clicked event is finished. During this event, GetColumn and GetClickedColumn can return different values.

If the user arrived at a column by another means, such as tabbing, GetClickedColumn cannot identify that column. Use GetColumn instead to identify the current column.