diff --git a/src/ng2-smart-table/lib/data-set/row.ts b/src/ng2-smart-table/lib/data-set/row.ts index 8bf4def62..c44c9e521 100644 --- a/src/ng2-smart-table/lib/data-set/row.ts +++ b/src/ng2-smart-table/lib/data-set/row.ts @@ -49,7 +49,8 @@ export class Row { } createCell(column: Column): Cell { - const value = typeof this.data[column.id] === 'undefined' ? '' : this.data[column.id]; + const defValue = (column as any).settings.defaultValue ? (column as any).settings.defaultValue : ''; + const value = typeof this.data[column.id] === 'undefined' ? defValue : this.data[column.id]; return new Cell(value, this, column, this._dataSet); } }