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

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

Parameters

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