web
You’re offline. This is a read only version of the page.
close
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

Allow edit YES inside from Grid

(1) ShareShare
ReportReport
Posted on by 561
Hi, I am doing a development that involves an extension of a form. In that form, I have added a new field in the GRID. The problem is that I need to be able to edit that field manually from the form, but the grid has the value allow edit no, and I can't change it since it belongs to standard code. What could I do to be able to modify this field without having to modify the grid.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at
    Hi Jesus,
     
    Can you describe the business requirements? What exact form do you want to extend and on what table do you have your custom field? When you provide some more information the volunteers on the forum might be able to think along with you about a viable approach.
  • Verified answer
    Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Jesus,

    if the whole grid is allow edit false, then are you sure it's the correct place to add your field?

    But in general:
    You should be able to change the allowEdit property of the grid via extensions. So you can change the datasource grid allow edit property to"true", then mark each single field as allow edit false except for your new field.

    or you can do it by code, i mean to mark the grid by code as allow edit true
    then mark each single field as allowEdit false, except for your new field;

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi,
     
    try this in your init method:
    FrmDataSource_ds.object(fieldNum(FrmDataSource,LineNum)).allowEdit(true);
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi @Jesus,
     
    Did try to add your field on the form that used to create/Edit the grid records? What is the Form name that you try to add a new field to it in order to help you?
     
     
    Thanks,
    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Are you sure you really want to add a field where the whole datasource made as allow edit to no? Because you can't change the datasource level properties if it is made from standard.
     
    But you can try from code in active method post next if you can make that field as allow edit yes.
  • Jesús García Profile Picture
    561 on at
    this is the form I am extending. In this case, the Grid and the datasource named WHSShipmentTable has the allow edit set to no. The initial idea is to add this field in the GRID and make it editable, but this configuration prevents me from doing it.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Please read my answer again. This is what I am saying that you need to rethink on your business requirement.
     
    But still if business requirement needs this, then you can try on active method.
  • Jesús García Profile Picture
    561 on at
    Hello again, yes, we have rethought the development and have concluded to do the following:
    Grid Allow edit: true
    Datasource allow edit: true
    After this, we set all the fields to allow edit: false except the one we need to be true, so we keep the previous security and unblock the editing of the field we need.
  • Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Jesus,
     
    I think u followed my suggestion. Please don't forget to verify the answers that helped.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans