Skip to content

AddColumn

t3wz edited this page Oct 19, 2015 · 3 revisions

AddColumn

The column width MUST be passed as an absolute coordinate, and not as a relative like the CEGUI's columns.

This function creates columns in gridlists.

Syntax:

int Gridlist:AddColumn ( string title, int width )

Required Arguments

  • title: title of the column
  • width: Column width, note that you can't pass the gridlist width with columns.

Returns

Returns the column id if it was created, false otherwise.

Example

gridlist = dxGrid:Create(460, 276, 446, 251, false);
gridlist:AddColumn("Name", 300);
gridlist:AddColumn("Text", 146);