Grid
The Grid panel consists of adaptable rows and columns and has resizing capabilities for itself and its child controls. Using the Margin property, you can set precise spacing for columns and rows.
When a grid panel is set as the active layer, an orange border indicates that you can add additional objects.
When a grid is the active layer, headers appear across the top and sides of the grid to define its rows and columns. By default, the grid has one row and one column and is zero-based; that is, the first row is Row 0 and the first column is Column 0. The grid panel provides three editing buttons for adding rows and columns, deleting rows and columns, and changing the row/column width type.
Grid Anchors
When an object is added to a grid, the object receives a set of anchors. These four anchors appear just above the object’s blue move/resize handles, on the object’s top, bottom and sides. These grid anchors allow you to position objects within the grid by attaching the object to the top, bottom, or sides of the grid cell. Attaching the object to the grid cell keeps the object in that position when the grid is resized.
Grid anchors are either black or grey. A black anchor indicates that the object is locked in the current position, whereas a grey anchor indicates the object is unlocked and can be repositioned. Clicking the grid anchors changes them from black to grey and vice versa. By default, an object is locked to the top and left side of a grid cell.
Sizing Rows and Columns
The Forms Designer supports advanced editing of grid cell height and width sizing. This functionality is accessed through the grid’s context menu. You can choose automatic, Star (relational), or pixel resizing.
See Grids and Panels to view the usage and description of the properties for this control.