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 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:
I have the same question (0)
  • ArchitectMadhan Profile Picture
    458 on at
    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
  • JW-28031801-0 Profile Picture
    Microsoft Employee on at
    Please ignore, testing.
  • CU03040723-0 Profile Picture
    6 on at
    Im calling from onChange within the subgrid already, but this will not give me access to the subgrid control. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 153

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 67 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 61 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans