regarding configuration of RAG status

i need to configure an action plan (interface) for RAG statuses (Green,Yellow,Red)(if user selects green from a drpdown(which is in editable grid)in the consecutive column should display(the selected colour) automatically,)

can any suggest me some example code

  Discussion posts and replies are publicly visible