0

I had checked this link.

That's a clever idea but isn't for my problem.

My grid has a row number header column and some other row header columns, and these is a switch for only the row number column. How could I remove only row number column when it exists?

enter image description here

1 Answer 1

0

i have found a way to do that:

var numColIndex = _.findIndex(gridApi.grid.columns, (c) => c.name === numColDef.name);
if (numColIndex >= 0)
    gridApi.grid.columns.splice(0, 1);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.