| Design-Time Support > Using the C1List Designer |
The C1DataColumnCollection object is a collection of the column properties which relate to data, data accessing, or data formatting. These properties are contained under the Column tab. Accessing these properties in code is done through the Columns property under the C1List object, and is demonstrated by the following:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.C1List1.Columns(0).DataField = "CompanyName" |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.c1List1.Columns[0].DataField = "CompanyName"; |
|
Given the List for WinForms' object model, many of these properties would be tough to find and set efficiently. Luckily, .NET contains collection editors which help in categorizing and setting the C1List's collection properties. .NET's collection editor for the C1DataColumnCollection object enables the user to efficiently add, remove and alter C1DataColumn properties. The C1List Designer can be accessed by clicking the ellipsis button next to the Columns property in the Properties window.

The editor has two panes. The right pane contains the current columns in the list. By clicking on the Add or Remove buttons in the toolbar, the columns in the right pane can be created or deleted accordingly. The left pane contains the data-related properties for the specific column highlighted in the right pane.
SplitCollection and C1DisplayColumnCollection object properties are also accessible through the C1List Designer. The following sections list the available properties in the C1List Designer.