Check out the displayOption on the datasource....
example...
public void displayOption(Common _proj, FormRowDisplayOption _options)
{
projtable projtablelocal;
projtablelocal = _proj;
switch (projtablelocal.Status)
{
case projStatus::Completed : _options.backColor(14540253);
//Light Grey
_options.textColor(8421504);
//Grey
break;
case projStatus::Created : _options.backColor(14540253);
//Light Grey
_options.textColor(2132222);
//Orange
break;
case projStatus::Estimated : _options.backColor(14540253);
//Light Grey
_options.textColor(16654488);
//Purple
break;
case projStatus::InProcess : _options.backColor(14540253);
//Light Grey
_options.textColor(32768); //Green
break;
case projStatus::Scheduled : _options.backColor(14540253);
//Light Grey
_options.textColor(12582912);
//Blue
break;
}
}
Hope this helps...
Andre
_____
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Zappia Alessandro
Sent: 19 May 2005 10:24
To: [email protected]
Subject: [development-axapta] Change Colors in grid rows
Hi ! Does anybody knows how to change the background color in the rows
of a grid? I'd like to set it depending on the value of a field (linked
to a datasource field).
Thanks in advance for any help!
Alex
[Non-text portions of this message have been removed]
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

