Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

disable column on grid depend on other column

(0) ShareShare
ReportReport
Posted on by 2,030

greeting everyone

i want disable column (2 as in pic) depending on value on column (1 as in pic)

disable-field.JPG

where must i put my condition and i don't want effect on other rows

i mean every row column 1 value must be effect on column 2 for the same row

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: disable column on grid depend on other column

    You can add the code to field1 modified

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: disable column on grid depend on other column

    thanks mr.Sumit Loya it's working fine

  • Verified answer
    Sumit Loya Profile Picture
    2,230 on at
    RE: disable column on grid depend on other column

    You can create a new method to enable disable field 2 based on value from field 1.

    Then call that method on formdatasource active and formdatasource field modified after super call.

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: disable column on grid depend on other column

    thanks for replay

    it's work as you said but that method not on time it's running after move from current line

    i mean if any change happened when i'm still on current line active method not running  

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: disable column on grid depend on other column

    If what you want is to close the field to edit, you can do it with field2.allowedit(condition) in the active method.

    Since the active will only work for the line you're on, it(condition) will change when it moves to the next 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

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,748 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans