Column Definitions
This section describes how to create columns in the component's HTML definition or in the TypeScript class file.
Live example
HTML definition
<dike-grid #grid="dkgGrid" id="grid-col-def" height="500px"
[datasource]="dkgDataSource">
<dike-grid-column
fieldName="employeeId"
headerText="Employee Id"
dataType="Text"
width="350">
</dike-grid-column>
<dike-grid-column
fieldName="firstName"
headerText="Name"
dataType="Text"
width="150">
</dike-grid-column>
<dike-grid-column
fieldName="lastName"
headerText="Surname"
dataType="Text"
width="150">
</dike-grid-column>
</dike-grid>TypeScript code definition
DikeGrid Column API
Querying the DikeGridComponent from the View
DikeGridComponent from the ViewRetrieving the DikeGridColumnDef instance
DikeGridColumnDef instance
Columns Order
Column Definition
Specifying the order of the columns

Column types
DikeColumnDataType
Inner Type / Default alignment
Class Definition
Retrieving and Updating a field value

Templates for displaying field values
Text and Binary columns
Numeric and Date columns
Custom templates
Surname and Name templates
Gender template
Hire Date and March Sales column templates

Column Identifiers
Summary
Complete code for this section
Last updated