# Data Grid - Adding condition to edit

**URL:** <https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [February 14, 2024, 2:06pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822 "2024-02-14T14:06:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eda/32/64127_2.png) [@eda](https://community.glideapps.com/u/eda)\
**Post date:** [February 14, 2024, 2:06pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822/1 "2024-02-14T14:06:47Z")

</div>

Hi, I am trying to add a condition to let just one user to edit the Data Grid component. But I could not see conditional logic under Actions tab. When try with Collection component it works but I need that to be working for data grid

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [February 14, 2024, 2:14pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822/2 "2024-02-14T14:14:36Z")

</div>

Yes you cannot add condition to inline edits, only in actions.

What you can do is have **2 data grid components** , one visible to the admin that allows inline editing, and the second visible to the other where it’s not allowed to do inline edits.

---

<div class="post-metadata">

**Author:** ![eda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eda/32/64127_2.png) [@eda](https://community.glideapps.com/u/eda)\
**Post date:** [February 14, 2024, 3:01pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822/3 "2024-02-14T15:01:31Z")

</div>

That works! Thanks so much!

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [February 14, 2024, 3:03pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822/4 "2024-02-14T15:03:46Z")

</div>

Happy to help!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [February 21, 2024, 3:04pm UTC](https://community.glideapps.com/t/data-grid-adding-condition-to-edit/70822/5 "2024-02-21T15:04:27Z")

</div>

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