Class Column
Inheritance
Namespace: Syncfusion.EJ2.MultiColumnComboBox
Assembly: Syncfusion.EJ2.dll
Syntax
public class Column : EJTagHelper
Constructors
Column()
Declaration
public Column()
Properties
CustomAttributes
The CSS styles and attributes of the content cells of a particular column can be customized.
Declaration
public object CustomAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
DisplayAsCheckBox
If displayAsCheckBox
is set to true, it displays the column value as a check box instead of Boolean value.
Declaration
public bool DisplayAsCheckBox { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Field
Defines the name of the field whose data will be displayed in the column.
Declaration
public string Field { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Format
It is used to change display value with the given format and does not affect the original data.
Gets the format from the user which can be standard or custom number
and date
formats.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Header
Defines the header text of column which is used to display in column header. If headerText is not defined, then field name value will be assigned to header text.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
HeaderTemplate
Defines the column template as string or HTML element ID which is used to add customized element in the column header.
Declaration
public string HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Template
Defines the column template that renders customized element in each cell of the column. It accepts either template or HTML element ID.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TextAlign
Defines the alignment of the column in both header and content cells.
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign | The default value is TextAlign.Left |
Width
Defines the width of the column in pixels or percentage.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |