Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How To Update Multiple Records in a grid

(0) ShareShare
ReportReport
Posted on by 454

Hi,

I have to Update Multiple selected Records in a Grid by clicking on a button. Any Suggestions please.

Regards,

Ram.

  • MATTGUO Profile Picture
    22,317 Moderator on at
    RE: How To Update Multiple Records in a grid

    Hi Ram,

    You can write method in your click method,

    Have a look at this blog:

    community.dynamics.com/.../how-to-update-multiple-rows-at-backend-and-refresh-the-ui

    As martin said , MutliSelectionHelper class is also a good choice to iterate records.

    Refer to the following codes:

    CustPaymModeTable custPaymModeTablelocal;

       MultiSelectionHelper helper = MultiSelectionHelper::construct();

       helper.parmDatasource(custPaymModeTable_ds);

       custPaymModeTablelocal = helper.getFirst();

       while (custPaymModeTablelocal.RecId != 0)

       {

           info(custPaymModeTablelocal.PaymMode);

           custPaymModeTablelocal = helper.getNext();

       }

  • Martin Dráb Profile Picture
    231,821 Most Valuable Professional on at
    RE: How To Update Multiple Records in a grid

    You can use MutliSelectionHelper class to iterate the records. Change values, save each record, refresh the datasource.

    By the way, you again picked a wrong category. Please pay more attention to it.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,978 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,821 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans