Example: Using the GridSetColumnLayout method
This example can be used for setting up grid columns on a form.
In this example, a user wants fewer columns on the Properties grid of the IDOs form to view the list of properties easier. The user follows these requirements:
- Display the Property Name, Column Name and Data Type columns only, in this order
- Column width of Property Name and Column Name is 20 Char
- Column width of Data Type is set to auto-fit
- Display this limited view as the form first opens
To set up this view, the user must perform these actions:
In the Windows client, users can also use the Edit Grid Column Visibility and Order dialog box to set up the grid column visibility and order. This dialog box can be used together with the GridSetColumnLayout method to further edit the layout, as needed.
In this example, when the user right-clicks on the upper-left corner of the Properties grid, and selects , the Edit Grid Column Visibility and Order dialog box is displayed. The dialog box lists all of the original columns, but only the first three columns are visible, and at the top of the order. The remaining columns are in the original order they had before the layout change was applied, except for the currently visible columns, which are moved to the top of the order as part of the layout change.
In the web client, the
option is removed when the GridSetColumnLayout method is used.