# How to set height/max-height on Data Grid rows?

**URL:** <https://community.weweb.io/t/how-to-set-height-max-height-on-data-grid-rows/6152>\
**Category:** How do I?\
**Created:** [December 31, 2023, 1:36pm UTC](https://community.weweb.io/t/how-to-set-height-max-height-on-data-grid-rows/6152 "2023-12-31T13:36:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sstava](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sstava/32/722_2.png) [@sstava](https://community.weweb.io/u/sstava)\
**Post date:** [December 31, 2023, 1:36pm UTC](https://community.weweb.io/t/how-to-set-height-max-height-on-data-grid-rows/6152/1 "2023-12-31T13:36:15Z")

</div>

How can I set the max height of the rows in a data grid? When there is only one (or a few) rows in the data grid it expands the row height to fill the data grid. I have included a few screenshots showing how the data grid row height looks as I add additional rows. Thanks!

## ![Screenshot 2023-12-31 at 7.23.25 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8f037b31f59f431485814d3873131a7f3261cd90.png)

* * *

## ![Screenshot 2023-12-31 at 7.24.46 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/25a6f6b4ec3bf15e71d50996a0a2293affa6e77d.png)

* * *

 ![Screenshot 2023-12-31 at 7.30.53 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8a2c65ebefe47afa537845ee5568b0952c63e6d4.jpeg)
