CGrid:Optimize


The Optimize method adjusts column widths to accommodate their cell contents. This method differs from BestFit by disregarding column visibility inside the grid window.

Syntax

CGrid:Optimize()

Example

The following script adjusts the grid to best fit over all column widths:

G = new_grid()

-- create a CGrid object

-- assemble the grid

 

G:Optimize()

-- optimize the width over all columns

Related Topics

CGrid class, BestFit


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.