# color in the grid  for the form in ax 2012 r2

**URL:** <https://www.dynamicsuser.net/t/color-in-the-grid-for-the-form-in-ax-2012-r2/54139>\
**Category:** Developer Forum\
**Created:** [July 31, 2014, 3:24pm UTC](https://www.dynamicsuser.net/t/color-in-the-grid-for-the-form-in-ax-2012-r2/54139 "2014-07-31T15:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitsinghbatchu](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@rohitsinghbatchu](https://www.dynamicsuser.net/u/rohitsinghbatchu)\
**Post date:** [July 31, 2014, 3:24pm UTC](https://www.dynamicsuser.net/t/color-in-the-grid-for-the-form-in-ax-2012-r2/54139/1 "2014-07-31T15:24:06Z")

</div>

hi guys i am trying to fill the color for the production order based on status but the we have to write this code over there public void displayOption(Common \_record, FormRowDisplayOption \_options) { prodtable prodtablelocal; prodtablelocal = \_record; Switch(prodtablelocal.ProdStatus) { Case ProdStatus::Created: \_options.backColor(6029311); //Light Yellow \_options.textColor(12582912); //Blue Break; Case ProdStatus::Completed: \_options.backColor(16761281); //Light Blue \_options.textColor(12582912); //Blue Break; } } but when i go to the datasource i am not getting any option to override the datasource please note the datasource property is allow edit :no, allow create no, insert at end no , insert at empty no

---

<div class="post-metadata">

**Author:** ![rohitsinghbatchu](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@rohitsinghbatchu](https://www.dynamicsuser.net/u/rohitsinghbatchu)\
**Post date:** [July 31, 2014, 3:52pm UTC](https://www.dynamicsuser.net/t/color-in-the-grid-for-the-form-in-ax-2012-r2/54139/2 "2014-07-31T15:52:10Z")

</div>

sorry it is a list page and followed this link also any other help [http://dynamicsuser.net/forums/p/55513/294460.aspx](http://dynamicsuser.net/forums/p/55513/294460.aspx) but no help
