ListBoxColumnCollection.Add(String, String, Unit) Method
Creates a new column with the specified settings and adds it to the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
fieldName | String | A String value that specifies the name of the associated data field. This value is assigned to the ListBoxColumn.FieldName property. |
caption | String | A String value that specifies the column’s caption. This value is assigned to the WebColumnBase.Caption property. |
width | Unit | A Unit that represents the column width. This value is assigned to the WebColumnBase.Width property. |
Returns
Type | Description |
---|---|
ListBoxColumn | A ListBoxColumn object representing the newly created column. |
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 SelectionMode on callbacks. To perform these actions on the client side, you can wrap the control with the ASPxCallbackPanel control and process a required scenario on a callback to the panel.