Grid.DeleteColumn

Grid.DeleteColumn ( 

string  ObjectName,

number  Column,

boolean Redraw = true )

Example 1

-- Delete the leftmost column
Grid.DeleteColumn("Grid1", 0, true);

Deletes the leftmost column from the grid

Example 2

-- Get the number of columns
totalColumns = Grid.GetColumnCount("Grid1");
-- Delete the rightmost column
Grid.DeleteColumn("Grid1", totalColumns - 1, true);
-- note: the -1 is because the columns in the grid are zero based.

Deletes the rightmost column from the grid

See also:  Related Actions