Grid.AutoSizeColumn

Grid.AutoSizeColumn ( 

string  ObjectName,

number  Column,

number  ResizeMode = GVS_DEFAULT,

boolean ResetScroll = true,

boolean Redraw = true )

Example 1

-- Set the text of the top left most cell
Grid.SetCellText("Grid1", 0, 0, "Stats", true);
-- Set auto size for that column
Grid.AutoSizeColumn("Grid1", 0, GVS_DEFAULT, true, true);

Autosize column 0 to fit the data

See also:  Related Actions