﻿<?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 - V1 » Business Objects and Data Access (How do I?)  » Using the DevEx ColorEdit Control</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 13:07:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Using the DevEx ColorEdit Control</title><link>http://forum.strataframe.net/FindPost13884.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.&amp;nbsp; 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.&amp;nbsp; I left the datatype as is in the DB (string) and made an &lt;EM&gt;extremely simple&lt;/EM&gt; change.&amp;nbsp; I modified the control so that the bound property was &lt;STRONG&gt;EditValue&lt;/STRONG&gt; rather than Color (this is&amp;nbsp;the same as what I did with the PictureEdit control).&amp;nbsp; &lt;/P&gt;&lt;P&gt;BAM!&amp;nbsp; :w00t: &amp;nbsp;It works beautifully!!&lt;/P&gt;&lt;P&gt;Thanks, again, StrataFrame and all of the gurus behind this framework.&amp;nbsp; You are making my life easier and easier every day!! :)&lt;/P&gt;&lt;P&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/FindPost13939.aspx</link><description>Sounds like a good plan.&amp;nbsp; Perhaps I will introduce this the next time I need to create a color column in the DB.&amp;nbsp; 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/FindPost13905.aspx</link><description>You could also store a color in the database as an integer... ARGB.&amp;nbsp; 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.&amp;nbsp; 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>StrataFrame Team</dc:creator></item></channel></rss>