﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Business Objects and Data Access (How do I?)  / Using the DevEx ColorEdit Control / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Sun, 07 Sep 2008 19:25:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Using the DevEx ColorEdit Control</title><link>http://forum.strataframe.net/Topic13884-6-1.aspx</link><description>Sounds like a good plan.  Perhaps I will introduce this the next time I need to create a color column in the DB.  Fortunately, the column that I am working on is simply for a lookup type table (statuses), so they are quite limited (I think 10 rows so far).&lt;/P&gt;&lt;P&gt;Thanks a ton!&lt;BR&gt;Bill</description><pubDate>Fri, 01 Feb 2008 13:14:12 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Using the DevEx ColorEdit Control</title><link>http://forum.strataframe.net/Topic13884-6-1.aspx</link><description>You could also store a color in the database as an integer... ARGB.  Then override the property on the business object within the BOMapper to use the Color.FromArgb() method and Color.ToArgb() method for getting/setting the property.  That's what we ended up doing... saves a little bit of space in the database.</description><pubDate>Fri, 01 Feb 2008 08:43:00 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Using the DevEx ColorEdit Control</title><link>http://forum.strataframe.net/Topic13884-6-1.aspx</link><description>Amazing!&lt;/P&gt;&lt;P&gt;I was having trouble figuring out how to get color from my DB (stored as string values) to stick to the color property of the ColorEdit control from DevExpress.  After searching various places for how I needed to format the datatype in the backend DB (since I was having trouble getting the control to work properly), it dawned on me that I was approaching this all wrong.  I left the datatype as is in the DB (string) and made an &lt;EM&gt;extremely simple&lt;/EM&gt; change.  I modified the control so that the bound property was &lt;STRONG&gt;EditValue&lt;/STRONG&gt; rather than Color (this is the same as what I did with the PictureEdit control).  &lt;/P&gt;&lt;P&gt;BAM!  :w00t:  It works beautifully!!&lt;/P&gt;&lt;P&gt;Thanks, again, StrataFrame and all of the gurus behind this framework.  You are making my life easier and easier every day!! :)&lt;/P&gt;&lt;P&gt;Bill</description><pubDate>Thu, 31 Jan 2008 15:15:02 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>