Add new basic column into grid view.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 11.0.0
Syntax 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