GRID.AutoSize

Previous  Next

 

state = GRID.AutoSize( BYVAL nControl AS INTEGER,

                       BYVAL style    AS INTEGER ) AS INTEGER

 

 

 

 

Auto sizes all rows and columns. nAutoSizeStyle sets the way the autosize will occur.

 

Example:

 

GRID.AutoSize( nControl, GVS_DEFAULT )