Column width to fit to content

This issue has been tracked since 2022-11-06.

I could not find a way to configure a column so that its cells' width fits their content.
Is there a way to do it?

aitorllj93 wrote this answer on 2022-12-04

Hi @ronyut I think probably you were looking for width: 'max-content',

amanmahajan7 wrote this answer on 2022-12-06

Like mentioned in the previous comment, you can use grid-template-columns values

More Details About Repo
Owner Name adazzle
Repo Name react-data-grid
Full Name adazzle/react-data-grid
Language TypeScript
Created Date 2015-03-06
Updated Date 2023-03-23
Star Count 5922
Watcher Count 129
Fork Count 2072
Issue Count 161

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date