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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Nested grid editable field.

(0) ShareShare
ReportReport
Posted on by 233

Hi Experts,

i need to edit the two fields in the nested grid View, can any body help me on this

Below image are the two field i need to unlock,please suggest me on this.

pastedimage1609413053547v1.png

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    What are the field types of those two locked fields?  Are they on a different record type/entity than the actual subgrid entity?

    They look like they might be related records from a 3rd entity (contact) where the parent child on the form is something else.  If thats the case you wont be able to edit those:

    dynamics365crmblog.wordpress.com/.../

  • Amrutha B K Profile Picture
    233 on at

    Hi Mike,

    Those two fields what i mentioned, is from different entity, for that how to remove unlock?

  • Suggested answer
    Community Member Profile Picture
    on at

    Its not supported:

    docs.microsoft.com/.../make-grids-lists-editable-custom-control

  • Suggested answer
    MehranBre Profile Picture
    732 on at

    hi,

    Call the following function for the OnRecordSelect editable grid event. Also check "Pass execution context as first parameter".

    please verify if this useful

    Regards.

    function onSelectSubGrid(context) {
    
        var subGrid = context.getFormContext().data.entity;
    
        subGrid.attributes.forEach(function (field, i) {
            field.controls.get(0).setDisabled(false);
        });
    }

  • LearningAlways Profile Picture
    10 on at

    Your code works for the Editable Grid, but I also want to disable fields on the 'Nested' grid...  When I use the same code for the OnRecordSelect event of the nested grid, I get an error:

    Cannot read properties of null (reading 'data')

    Here is the code I am using for both the Editable Grid and the nested Editable Grid:

    function setGridReadOnly(context) {

       var entityObject = context.getFormContext().data.entity;

       entityObject.attributes.forEach(function (attribute, i) {

                   var ctrl = attribute.controls.get(0);

                   ctrl.setDisabled(true);

           })

       }

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 June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Hamza H Profile Picture

Hamza H 30 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans