web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disable column headers on subgrid displayed on an Entity Form - MS Portals

(0) ShareShare
ReportReport
Posted on by 1,856 Most Valuable Professional

Is there a way to hide the sortable column headers on a subgrid displayed on an Entity Form? I have a view that I am then displaying as a subgrid on a form. The form is then being used on an Entity Form. There is no need for the portal user to see the sorting hyperlinks at the top of the grid, and for this purpose (because there will only be one or two rows) it could end up being confusing to them. Any way to disable the sorting? 

6052.grid.PNG

*This post is locked for comments

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Megan,

    There aren't any standard way of disabling sorting (there could be some with scripting etc).

    You can however change the sortable column from the first column to last so that it wouldn't look that confusing. You could also (as per your screenshot) set it to City which I think will not look confusing.

    Hope this helps.

  • Verified answer
    Megan V. Walker Profile Picture
    1,856 Most Valuable Professional on at

    Thanks Ravi. I don't want to go down the path of scripting, and also didn't want the hyperlinks to display. I have instead been able to achieve what I was looking for using CSS. I added the following to my custom stylesheet:

    [role="button-address"], a[href="#"] {

    color: #666;

    text-decoration: none;

    pointer-events: none;

    cursor: default;

    }

    Then on the Entity Form Metadata for the subgrid, I added the following to the CSS Class field in the Advanced Options section:

    [role="button-address"]

    This has achieved what I was looking for, the appearance of not having any hyperlinks.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans