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, ...
Unanswered

How To Update Multiple Records in a grid

(0) ShareShare
ReportReport
Posted on by 456

Hi,

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

Regards,

Ram.

I have the same question (0)
  • Martin Dráb Profile Picture
    239,213 Most Valuable Professional on at

    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.

  • MATTGUO Profile Picture
    22,349 Moderator on at

    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();

       }

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans