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 334

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
    233,352 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans