How to Hide Enum values x++


Today will discuss about a simple topic of hiding enum values through code.

Suppose, you have enum Gender which contains values A,B,C. you want to hide last value of enum while displaying it on the form.

So, what you have to do is override the enter method of that enum control at form level.

public void enter()
{
super();
this.delete(enum2str(Gender::C));
}

Please let me know if you have any further queries.

Comments