Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set height for whole grid ? #2553

Closed
evbargavi opened this issue Aug 6, 2021 · 2 comments
Closed

How to set height for whole grid ? #2553

evbargavi opened this issue Aug 6, 2021 · 2 comments

Comments

@evbargavi
Copy link

I have used minHeight property. But still i cant getting the desired table height that i want to assign.

@okram2k
Copy link

okram2k commented Aug 6, 2021

best I've found is you can set the height in the style component as such:
<DataGrid style={{height: 500}} /> would set it a height of 500 pixels. If there's a better way I'd love to know myself. I've been using window.innerHeight to get the window size to make it fit the whole screen.

@evbargavi evbargavi changed the title Hwo to set height for whole grid ? How to set height for whole grid ? Aug 6, 2021
@evbargavi
Copy link
Author

HI,

Thanks for the reply.
It works well.

I need another solution..

In my site - i am having many columns fr data grid - in which i have to show only columns fit into the container width.
and i have manually hide horizontal scrollbar.
Is there any possibility to show the hided columns in the container?

@adazzle adazzle locked and limited conversation to collaborators Aug 17, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants