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

Notifications

Announcements

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.
I have the same question (0)
  • Awaxx Profile Picture
    229 on at
    Hello, 

    Someone for some help please ?

     
  • Verified answer
    Waed Ayyad Profile Picture
    9,047 Super User 2025 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,047 Super User 2025 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,047 Super User 2025 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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 679 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 410 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 292 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans