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 :
Microsoft Dynamics AX (Archived)

How do you hide/remove certain values of an datasource-based combobox on a form?

(0) ShareShare
ReportReport
Posted on by

Hello,

currently I am running into this problem I can't seem to find a solution for. My situation:

I have a form which has a Grid. Under that grid I have a form. Under that form I have two comboboxes and an intEdit. Relevant for me is the first combobox. Basically it would look something like this:

Grid

Group

ComboBox

This combobox has a datasource and a datafield, where the field has an EnumType. The Enum contains, let's say, two values:

0 - Hello

1 - Goodbye

What I want is to prevent option 1 - Goodbye from being shown in the dropdown of the combobox. I found solutions with the https://msdn.microsoft.com/en-us/library/dialogenumcombobox.aspx class, but those apply to comboboxes outside of a Grid only, which is not the case for me. 

I would really love some help on this one. Thank you very much!

Best regards

Niklas

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    I decided to limit the options so that when the value I wanted to delete is selected, the user cannot change it's properties, since I could not find any solution except for putting the ComboBox outside of the Grid.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans