Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Is it possible to control specific row in grid allowed to edit or not using X++

(0) ShareShare
ReportReport
Posted on by 318

Hi, exports:

I would like to know is it possible to control a row(whole column) in a grid to editable or not depends on the column's data of the row (for example. status)?

I do some research but didn't find the solution.

I'm using AX 2012 CU7 .

If would be appreciated if anyone provide the suggestion.  thanks in advance

Quatrani

*This post is locked for comments

  • Verified answer
    Udit Profile Picture
    567 on at
    RE: Is it possible to control specific row in grid allowed to edit or not using X++

    Hi quatrani,

    Depending on your scenario, you can use following code -

    in active method

    if(condition)

    {

    datasource_ds.enable(true);

    }

    else

    {

    datasource_ds.enable(false);

    }

  • Verified answer
    Martin Dráb Profile Picture
    231,723 Most Valuable Professional on at
    RE: Is it possible to control specific row in grid allowed to edit or not using X++

    Yes, it's possible and it's commonly used in AX 2012.

    Override active() method of the datasource and put your logic there (using allowEdit() of the datasource). Don't forget to enable editing again for other rows.

    You can find a plenty of examples in the standard application, if needed.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Is it possible to control specific row in grid allowed to edit or not using X++

    community.dynamics.com/.../94513

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,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans