title: ASPxGridView FilterExpression doesn't filter correctly decimal values
body: <p>When I filter an ASPxGridView decimal column the filtering expression is not interpreted correctly. For example, I use the filter <code>[Value]&gt;20</code>, but all the values greater then 3.00 are show. This behavior occurs just when we set the filtering criteria through the grid.FilterExpression. If we set the same filtering expression in the ColumnAutoFilter the decimal values are interpreted correctly.</p>
  
  <p>The aspx code for the girdView is the following:</p>
  
  <pre><code>&lt;dx:ASPxGridView SettingsBehavior-AutoFilterRowInputDelay="60000" ID="grid" KeyFieldName="Id" 
       AccessKey="G" SkinID="AspxGridView" runat="server" AutoGenerateColumns="False" ClientIDMode="AutoID" 
       OnCustomColumnDisplayText="grid_CustomColumnDisplayText" 
       OnHtmlRowCreated="grid_HtmlRowCreated" 
       OnHtmlDataCellPrepared="grid_HtmlDataCellPrepared" 
       EnableViewState="false" EnableRowsCache="false" meta:resourcekey="gridResource1" Width="100%"&gt;
       &lt;Columns&gt;
           &lt;dx:GridViewDataColumn Caption="Column1" FieldName="&lt;%$ Column1Name %&gt;" ShowInCustomizationForm="True" Visible="False" meta:resourcekey="GridViewDataColumnResource11"&gt;
               &lt;Settings FilterMode="Value" /&gt;
               &lt;CellStyle HorizontalAlign="Right" /&gt;
           &lt;/dx:GridViewDataColumn&gt;
       &lt;/Columns&gt;
       &lt;Settings ShowFilterRow="True" /&gt;
       &lt;SettingsCustomizationWindow Enabled="True" /&gt;
  &lt;/dx:ASPxGridView&gt;
  </code></pre>
  
  <p>On Server side we add at <code>Page_Init</code> the filtering expression.</p>
  
  <pre><code>protected void Page_Init(object sender, EventArgs e)
  {
      // initially we retrieve the filter from the DB
      filter = FilterMngr.GetItem(filterId, Settings.Default.MainConnStr)
  
      this.grid.SettingsCookies.Enabled = false;
      this.grid.FilterExpression = filter.FilterExpression;
  }
  </code></pre>
  
  <p>Then at <code>Page_Load</code> we populate the grid with values</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      var gridValues = GetValuesFromDataBase();
      this.grid.DataSource = gridValues;
      grid.DataBind();
  }
  </code></pre>
  
  <p>The filter expression is the following one: <strong><code>[ColumnName] &gt; '20' And [ColumnName] &lt; '50'</code></strong></p>
  
  <p>Until now I have tried the following approaches in order to solve the bug:</p>
  
  <ol>
  <li>I verified that the filtering expression uses the FieldName not the Caption name</li>
  <li>The FieldName is a valid name</li>
  <li>The page is localized so decimal and thousand separators marks should be interpreted correctly  </li>
  <li>Handle the ColumnAutoFilter. </li>
  </ol>
  
  <p>In the Aspx page we added the following property to the gridView</p>
  
  <pre><code>OnProcessColumnAutoFilter="grid_ProcessColumnAutoFilter"
  
  
  protected void gridInverters_ProcessColumnAutoFilter(object sender,
  DevExpress.Web.ASPxGridView.ASPxGridViewAutoFilterEventArgs e)
  {
      if (e.Kind == GridViewAutoFilterEventKind.CreateCriteria)
      {
          if (!String.IsNullOrEmpty(e.Value))
          {
              decimal value;
              if (decimal.TryParse(
                  e.Value, 
                  NumberStyles.Currency, 
                  CultureInfo.CurrentCulture, 
                  out value))
                  e.Criteria = new BinaryOperator(e.Column.FieldName, value);
          }
      }
  }
  </code></pre>
  
  <ol start="5">
  <li><p>Parse the filter expression from the database </p>
  
  <p>var parsedExpression = CriteriaOperator.Parse(filter.FilterExpression);
  string criteria = DevExpress.Data.Filtering.CriteriaOperator.LegacyToString(parsedExpression);
  this.grid.FilterExpression = criteria;</p></li>
  </ol>
  
  <p>At the current moment I can't figure out why this behavior occurs, so any suggestion into this matter would be very useful.</p>