# Styling the data-grid

**URL:** <https://community.cumulocity.com/t/styling-the-data-grid/2426>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [April 16, 2024, 9:03am UTC](https://community.cumulocity.com/t/styling-the-data-grid/2426 "2024-04-16T09:03:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rushikesh\_n](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rushikesh\_n](https://community.cumulocity.com/u/rushikesh_n)\
**Post date:** [April 16, 2024, 9:03am UTC](https://community.cumulocity.com/t/styling-the-data-grid/2426/1 "2024-04-16T09:03:07Z")

</div>

c8y\_version: 1018.0.240

**Detailed description of the problem:**  
I want to specific style to c8y-data-grid like adding a margin of 10 px on both the side, adding a border of 2px solid black to the table etc, Is there any way of doing it  
I have looked through documentation there is a mention of displayOptions, but apparently that only adds a border but colour and all I am not able to find it.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [October 13, 2024, 9:03am UTC](https://community.cumulocity.com/t/styling-the-data-grid/2426/2 "2024-10-13T09:03:58Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
