Hi everyone,
I am using dynamics ax 2012 and new to development. I want to colorize the grid cells based on its value. So same row may contains cells with different color. For this, i am overriding displayoptions() of Data source. But i realized that only the last set color is affecting the entire cells in a row. How can i achieve this.
As an another example i am using the following code to colorize different columns
public void displayOption(Common _record, FormRowDisplayOption _options)
{
_options.backColor(WinApi::RGB2int(255,0,0));
_options.affectedElementsByControl(FIELD_1.id());
_options.backColor(WinApi::RGB2int(0,0,255));
_options.affectedElementsByControl(FIELD_2.id());
Here i am expecting red color for FIELD_1 and blue color for FIELD_2. But i am getting both the columns with blue color.
please suggest the code for achieving the desired result
*This post is locked for comments