ListColumns.Add

Syntax:

Add(<Column>, <Autodelete>)

Parameters:

<Column> (required)

Type: String.
Name of list column. Depends on the application object.

<Autodelete> (optional)

Type: Boolean.
Allows you to delete a column if this column was deleted by a table box.
Default value: False.

Returned value:

Type: ListColumn.

Description:

Adds a column to the list.

Availability:

Server, thick client, external connection.

Example:

// Let's add a column with item code to the 
// catalog list connected with a table box:
List.Columns.Add("Code");
// To display code in the table box, let's insert a column
// with index 1 into it, which will display the "Code" column from the
// catalog list:
Controls.List.Columns.Insert(1,"Code").Value = "Code";


    

1C:Enterprise Developer's Community