﻿<?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 » WinForms (How do I?)  » SF DevExpress TextEdit - Percent can't store value</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 14:41:20 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost25636.aspx</link><description>Thanks Denis.</description><pubDate>Thu, 28 Jan 2010 08:04:30 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost9271.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I am using SF DevExpress textEdit, with editmask set to&amp;nbsp;'P' and masktype to numeric. When I edit value in the control and lost focus, SF Dev Textedit doesn't store my value. It reverted back to&amp;nbsp;previous value.&lt;/P&gt;&lt;P&gt;I did try to use DevExpress textedit directly, and it works without problem.&lt;/P&gt;&lt;P&gt;Do you think it is a bug in SF.NET?&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Thu, 28 Jan 2010 08:04:30 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost25633.aspx</link><description>Hi,&lt;br&gt;
As Ben Chase wrote before the problem happens because as default BindingProperty set to "Text", but for correct work it must be set to "EditValue"&lt;br&gt;
Here is a code what made good percent textbox ready :)&lt;br&gt;
&lt;br&gt;
' DataSource Part&lt;br&gt;
        Me.textbox.BindingField = "manufacturer_mwst"&lt;br&gt;
' BindingProperty is important!&lt;br&gt;
        Me.textbox.BindingProperty = "EditValue"&lt;br&gt;
        Me.textbox.BusinessObject = Me.Bbay_manufacturerBO1&lt;br&gt;
        Me.textbox.BusinessObjectEvaluated = True&lt;br&gt;
&lt;br&gt;
' Mask Part&lt;br&gt;
        Me.textbox.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far&lt;br&gt;
        Me.textbox.Properties.Mask.EditMask = "P0"&lt;br&gt;
        Me.textbox.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric&lt;br&gt;
        Me.textbox.Properties.Mask.UseMaskAsDisplayFormat = True&lt;br&gt;
&lt;br&gt;
Denis&lt;br&gt;</description><pubDate>Thu, 28 Jan 2010 04:17:27 GMT</pubDate><dc:creator>dgsoft</dc:creator></item><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost25623.aspx</link><description>[quote][b]dgsoft (01/26/2010)[/b][hr]Ok. answer found by my own[/quote]&lt;br&gt;
&lt;br&gt;
Would you mind posting the answer? :cool:</description><pubDate>Tue, 26 Jan 2010 08:30:54 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost25619.aspx</link><description>Ok. answer found by my own</description><pubDate>Tue, 26 Jan 2010 04:15:39 GMT</pubDate><dc:creator>dgsoft</dc:creator></item><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost25612.aspx</link><description>I have absolutely the same problem. The value is revert (set of bo property does not happens)&lt;br&gt;
&lt;br&gt;
        Me.Properties.Mask.EditMask = "P0"&lt;br&gt;
        Me.Properties.Mask.MaskType = Mask.MaskType.Numeric&lt;br&gt;
        Me.Properties.DisplayFormat.FormatString = "P0"&lt;br&gt;
        Me.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric&lt;br&gt;
        Me.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far&lt;br&gt;
        Me.Properties.Mask.UseMaskAsDisplayFormat = True&lt;br&gt;
&lt;br&gt;
What is solution for this problem?</description><pubDate>Mon, 25 Jan 2010 04:42:47 GMT</pubDate><dc:creator>dgsoft</dc:creator></item><item><title>RE: SF DevExpress TextEdit - Percent can't store value</title><link>http://forum.strataframe.net/FindPost9275.aspx</link><description>What is the BindingProperty on the textbox?&amp;nbsp; If it's Text, then it could be that the value in the textbox cannot be converted into the data type to which the control is bound.&amp;nbsp; (i.e.: if the value in the textbox is 1,000 it cannot be converted to a System.Int32 because of the comma).</description><pubDate>Mon, 04 Jun 2007 08:34:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>