I have (probably a bizzare) setting that first row of the table must behave similarly to the header row. I have to disable option of removing that row by any means.
For that purpose I am creating a CellMeta for all cells in the first row for that as follows.
if (row === 0) { const classes = ['header-row']; if (field.isRequired) { classes.push('required'); } if (field.canBeAutogenerated) { classes.push('autogenerated'); } const commentText = createCommentHeaderCommentText(field); const commentObj: CommentObject = commentText ? { value: commentText, readOnly: true } : null; return { disableVisualSelection: true, editor: null, readOnly: true, className: classes, label: {value: field.label}, comments: !!commentObj, comment: commentObj, renderer: field.isRequired ? asteriskRenderer : undefined, allowEmpty: !field.isRequired, allowRemoveRow: false, // <----------- NOT WORKING }; }
I have set allowRmoveRow:false, but for whatever resons I can still remove that very first row using context menu->remove row or contex menu->remove rows.
Is it possible to disallow removal of any arbitrary row somehow?