 		/* Allocate view table */
 		mViewTable = KCViewTable(columnCount: colnum, rowCount: mValueTable.rowCount)
 
+		if mValueTable.hasHeader {
+			mTableView.headerView = NSTableHeaderView()
+		} else {
+			mTableView.headerView = nil
+		}
+
 		mTableView.noteNumberOfRowsChanged()
 		mTableView.reloadData()
 		mIsReloading = true

		if let cidx = mValueTable.titleIndex(by: title) {
			mViewTable.set(column: cidx, row: ridx, view: newview)
		} else {
			CNLog(logLevel: .error, message: "Failed to set new view", atFunction: #function, inFile: #file)
		}
	}


			result.width  += width
			result.height =  max(result.height, height)
		}
		if let header = mTableView.headerView {
			var height: CGFloat = 0.0
			for cidx in 0..<numberOfColumns {
				let colsize = header.headerRect(ofColumn: cidx)
				height = max(height, colsize.height)
			}
			result.height += height
		}
		return result
	}
	#endif
