data-bind="koGrid: { data: ViewModel.statistics,
columnDefs: [ { displayName: 'Name', field: 'toName', sortable: true, headerTemplate: 'TmplStatsHeader', headerClass: 'left15 ' },
{ displayName: 'Email', field: 'email', sortable: true, headerTemplate: 'TmplStatsHeader', headerClass: 'left30 ' },
],
I have a ko grid my column definition is above
I have to show Email (second column) only based on some condition.