OverviewExamples
| 
 Grid.ExpandToFit (  | 
Expands (or reduces) all rows and columns to fit into the grid window area of a grid object.
(string) The name of the grid object.
(boolean) Whether the fixed rows and columns are expanded. This is an optional argument. Choose from:
| 
 VALUE  | 
 DESCRIPTION  | 
| 
 true  | 
 Expand fixed rows and fixed columns. (Default)  | 
| 
 false  | 
 Don't expand fixed rows and fixed columns.  | 
(boolean) Whether the grid should be automatically redrawn after the operation. Usually you will want to set this to true. However there may be times when you want to perform a lot of grid actions and delay the redraw until later. This is an optional argument. If omitted it will default to true.
| 
 VALUE  | 
 DESCRIPTION  | 
| 
 true  | 
 Automatically redraw the grid after the operation. (Default)  | 
| 
 false  | 
 Delay the redraw until later.  | 
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions