Event.Form.MainGrid

Event.Form.MainGrid returns the main grid object only if this exists on the DEACOM form. This includes, but is not limited too:

  • Management Report form layouts
  • MainMain
  • NewOrd1
  • NewPo1
  • NewJob1
  • ContAdd

Note: If the .MainGrid returns a null, then the sub-methods, functions, and properties will return a scripting error.

Applies To

Properties and Methods

Properties

Sub-Classes

Methods

  • .Reload()
  • .SelectGridRow(RowId)
  • .SetFontColorFunction(FuncName)
  • .SetRowColorFunction(FuncName)

Available

The .MainGrid property is available in:

  • 16.05.065
  • 16.06.030
  • 16.07.004
  • 17.00.001
  • All newer builds

Note: The .MainGrid property and all sub-classes, properties, and methods are only available in Form Layout scripts.

Type

Grid

Syntax

Event.Form.MainGrid;

Parameters

None

Example

//--Add this script to the ContAdd Record Load event

 

Event.Base();

var lpMainGrid = Event.Form.MainGrid;

Event.Form.MessageBox('Grid Functional ID: ' + lpMainGrid.FunctionalIdentifier);

 

/* Expected Prompt response:

Grid Functional ID: Grid_contadd

*/