Description: Runs when the user clicks or focuses a DBGrid record.
Execution: Available on desktop and web. Both platforms use the DBGrid formula executor.
Arguments:
Argument_ComponentObjectID: object identifier configured for the DBGrid component.
Argument_ComponentFilterID: filter identifier configured for the DBGrid component.
Argument_DataID: identifier of the focused record.
Common arguments: The DBGrid declares Argument_EventName, Argument_SenderName and Argument_SenderID, but its current formula executor does not assign them consistently. Do not rely on their runtime values for this event.
Result: Any value assigned to Result has no effect. Use the formula to perform the required actions for the focused record.
Availability: DBForm DBGrid component on desktop and web.
Example:
if Argument_DataID > 0 then
ShowMessage("Selected record: " + Argument_DataID);