Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to make sub grid read only?

Posted on by 12,070 Super User 2024 Season 1

Hi all, 

I have below sub grid on some conditions I have to make it read only:

8688.Untitled.png

To make it read only I have to hide this add button and delete functionality. How could this is possible for me?

Thanks 

Regards,

AW

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: How to make sub grid read only?

    You should also be able to achieve the results using the Append/AppendTo privileges for the entity that you don't want the users to be able to add new related records.

    Hope this helps.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to make sub grid read only?

    Hello,

    As far as I know the only way to do that is to remove privileges for user to create/delete/update of child entity (entity from grid). I'm afraid there is no other supported way of doing that.

    Of course you can develop report or HTML/Js to display data that is displayed in that subgrid if it works for you.

  • Suggested answer
    Somesh2207 Profile Picture
    Somesh2207 1,563 on at
    RE: How to make sub grid read only?

    Hi Abdul,

    You can do this using Ribbon workbench. 

    It is a 3rd party which you need to install, and it allows you to customize buttons, show hide buttons as well. 

    The below article has details on how to hide the "+" button on the subgrid. You can do the same with the delete button.

    https://mahadeomatre.blogspot.in/2015/03/hide-subgrid-new-button-button-based-on.html

    https://community.dynamics.com/crm/b/crminogic/archive/2017/01/20/hide-add-button-on-a-subgrid-by-applying-custom-javascript-rule

    Steps to install ribbon workbench and basic use video:

    Video link - https://youtu.be/5_gnIQGLL0M 

    Bloghttps://community.dynamics.com/enterprise/b/softchiefmicrosoftdynamics365/archive/2017/03/24/how-to-setup-ribbon-workbench

    Follow this, and it should work.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans