ListBoxColumnCollection.Add(String, String) Method
Creates a new column with the specified settings and adds it to the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public ListBoxColumn Add(
string fieldName,
string caption
)
#Parameters
Name | Type | Description |
---|---|---|
field |
String | A String value that specifies the name of the associated data field. This value is assigned to the List |
caption | String | A String value that specifies the column’s caption. This value is assigned to the Web |
#Returns
Type | Description |
---|---|
List |
A List |
#Remarks
Use the Add method to add a new column with the specified settings to the end of the ListBoxColumnCollection object.
Note
It is not possible, for example, to modify a column collection, change items selection, or change Selection