OnOption Property

Sets or gets the name of the macro or script to be run when the Option event is triggered.

object.OnOption = [string]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the script or macro to run when the Option event is triggered.

Client support

   Newlook Smartclient

   Newlook Server

Use

The Option event occurs when an option is selected from the grid context menu.

This event is primarily used to process custom grid options.

HANDY TIP:

When the event is triggered, the LastOption property of the Grid control contains the option that was selected by the user.

See Also

Options property | LastOption property | CancelEvent method

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.