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