Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Refresh editable subgrid after onChange event

(2) ShareShare
ReportReport
Posted on by 6

hey all

In a model-driven application on a form, I'm using an editable subgrid (power apps grid component). I need to refresh the subgrid every time a change occurred.

Tried to solve this using JS, but could not achieve to refresh subgrid from change within the editable subgrid. It works if I change a field value on the form for example.

Anybody having a solution for this?

This works when called from field outside of subgrid, but not if called from onChange in subgrid.

function refreshSubgrid(executionContext) {
var formContext = executionContext.getFormContext();
var subgrid = formContext.getControl("subgrid_name");
if (subgrid) {
subgrid.refresh();
}
}

appreciate your help!

Categories:
  • CU03040723-0 Profile Picture
    6 on at
    Refresh editable subgrid after onChange event
    Im calling from onChange within the subgrid already, but this will not give me access to the subgrid control. 
  • JW-28031801-0 Profile Picture
    on at
    Refresh editable subgrid after onChange event
    Please ignore, testing.
  • ArchitectMadhan Profile Picture
    456 on at
    Refresh editable subgrid after onChange event
    Hi,
     
    This issue might be because of losing the focus from grid. may be you can try the below method to call the OnChange event within the Grid.
     
     
    -ArchitectMadhan
     
    If this response is helpful for you, please like and accept this as solution

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans