Click or drag to resize
UniGridAddColumn Method
Add new basic column into grid view.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntax
C#
public void AddColumn(
	string header,
	string columnName,
	int width = 0,
	bool allowSorting = false
)

Parameters

header
Type: SystemString
Header caption
columnName
Type: SystemString
Data column name
width (Optional)
Type: SystemInt32
Width of column in GridView. If width is zero no width will be set
allowSorting (Optional)
Type: SystemBoolean
Indicates if the sorting is allowed
See Also