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 :
Finance | Project Operations, Human Resources, ...
Answered

Keep line selection on grid after update

(1) ShareShare
ReportReport
Posted on by 229
Hi all,

I have created a form with 2 grids.

Each grid is feeded by it own datasource.

When i select a line on the first grid1, the second Grid2 is filtered based on grid1 line value.

Then on the second grid i'm using a checkbox control, i linked it to a modified method.

When modified method is used, the selected line from grid1 will be updated.

What i need now it's to keep highlighted the first selected line on Grid1, how to reach that ?

Thanksfully.
  • Awaxx Profile Picture
    229 on at
    Hello, 

    Someone for some help please ?

     
  • Verified answer
    Waed Ayyad Profile Picture
    9,218 Super User 2026 Season 2 on at
    Hi,
     
    Do you mean that the selected line return to first record on the Grid1? if yes then try to call reread(), rereadreferencedatasource(), research(true), on your grid2 data source:
    YourTable_DS.reread();
    YourTable_DS.rereadReferenceDataSources();
    YourTable_DS.research(true);
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Awaxx Profile Picture
    229 on at
    Thank you it's working.

    If i have to refresh the parent (callerform) form should i write it here too or where else ?!!!!!!

    Thanks.
  • Waed Ayyad Profile Picture
    9,218 Super User 2026 Season 2 on at
    Hi,
     
    I'm glad your question is resolved, for your next question, what is the parent form? do you mean you have for example list page (caller form)? What do you want to achieve on the caller form? I need more details in order to help you.
     
    Thanks,
    Waed Ayyad
     
     
     
  • Awaxx Profile Picture
    229 on at
    Hi,

    When i achieve the first part i describe on the initial post, i need to go back to the caller form. There i'm using the same table as datasource i ve got updated before. What i need now is to refresh the displayed data.

    Thanks
  • Suggested answer
    Waed Ayyad Profile Picture
    9,218 Super User 2026 Season 2 on at
    Hi,
     
    Try to add this line also:
     
    YourParentTable_DS.research(true);
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
  • Awaxx Profile Picture
    229 on at
    I tried before your answer this way but if i add in this modified method this code i will avoid the selection of the line i did and the selection will go up to the first line.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 555 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 484 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 378

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans