Once created by the ScriptedForm.InputGrid method, the grid can be further modified by calling its methods. These allow you to control the type of editing controls placed on each field. Fields without an editor are treated as if they were marked as read-only in the dataset used to create the grid. CreateDefaultEditors can be used to create the default editors for each field based on the underlying type of the fields the grid is displaying. The available methods are:
Method |
Description |
|---|---|
Create default editors for each field in the table. |
|
Define a radio button control for a boolean value. |
|
Define a single line text edit control. |
|
Define a button that runs a Sub-Statement when clicked. |
|
Define a control that allows input of a code. |
|
Define a control that allows input of a custom defined code. |
|
Define a control that allows input of a date. |
|
Define a control that allows input of an integer. |
|
Define a combo edit control that allows selection from a set of values. |
|
Define a number edit control that allows input of a number. |
|
Define a combo control that allows input of a financial period. |