OnBeginEdit Property

Sets or gets the name of the macro/script to run when the BeginEdit event is triggered.

object.OnBeginEdit = [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 BeginEdit event is triggered.

Client support

   Newlook Smartclient only.

This property can be used to run a macro or script when a user moves from one cell to the next. The BeginEdit event is triggered every time a cell in a DataGrid receives the focus.

The BeginEdit event is triggered for all cell types, not just entry-capable cells. It works in the same way as the GotFocus event, except that the BeginEdit event is triggered when an individual cell receives the focus whereas the GotFocus event is triggered when the dataGrid object receives the focus. The BeginEdit event is triggered just prior to the DataGrid cell receiving the input focus.

Typically, you use an OnBeginEdit macro to specify the actions that you want to occur when a user moves from one cell to the next.

See Also

OnEndEdit property | OnGotFocus property

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.