The AddItemTitles method allows you to add or change the titles of the list.
To add or change the titles, add the following code. In this example, the text entered into AddRowBox will become the titles of the columns when the AddItemTitles button is clicked.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1List1.AddItemTitles(AddRowBox.Text) |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1List1.AddItemTitles(AddRowBox.Text); |