# Insert new record to Datagrid

**URL:** <https://community.weweb.io/t/insert-new-record-to-datagrid/17873>\
**Category:** Ask us anything\
**Tags:** table\
**Created:** [April 22, 2025, 2:22am UTC](https://community.weweb.io/t/insert-new-record-to-datagrid/17873 "2025-04-22T02:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwkhor](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jwkhor](https://community.weweb.io/u/jwkhor)\
**Post date:** [April 22, 2025, 2:22am UTC](https://community.weweb.io/t/insert-new-record-to-datagrid/17873/1 "2025-04-22T02:22:03Z")

</div>

When new data is added to the datagrid, there will be some issues with the display.  
When a column is sorted, the height of the datagrid becomes smaller.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/589bded2ea4175481be21209742b7e9de65070b2.png)  
 ![msedge_uQ2QkI90pF](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4fa8aa8e795681a37004bf44d8e7b23e341ecf49.gif)

---

<div class="post-metadata">

**Author:** ![DanielL](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/daniell/32/13398_2.png) [@DanielL](https://community.weweb.io/u/DanielL)\
**Post date:** [April 23, 2025, 11:07am UTC](https://community.weweb.io/t/insert-new-record-to-datagrid/17873/2 "2025-04-23T11:07:07Z")

</div>

Hi @jwkhor

The IDs need to be unique for each item. Can you check if they are being mapped correctly?
