Click or drag to resize
UniGridAddAdditionalColumn Method
Adds column to the UniGrid's columns with optional callback which specifies what will be displayed in a column cells.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 12.0.0
Syntax
C#
public void AddAdditionalColumn(
	Column column,
	OnExternalDataBoundEventHandler externalDataBoundCallback = null
)

Parameters

column
Type: CMS.UIControls.UniGridConfigColumn
Column
externalDataBoundCallback (Optional)
Type: CMS.UIControlsOnExternalDataBoundEventHandler
Optional external data bound callback. Function which returns content of the column's cells

Implements

IExtensibleUniGridAddAdditionalColumn(Column, OnExternalDataBoundEventHandler)
Exceptions
ExceptionCondition
ArgumentNullExceptioncolumn is null
Remarks
If externalDataBoundCallback is specified, property ExternalSourceName of the column parameter has to be specified as well. Callback externalDataBoundCallback will be called only for the cells in the added column. This method has to be called before the OnLoadColumns event is fired, what usually happens on the Page_Load.
See Also