DevExpress Pivot Grid不接受符号和数字

问题描述

我正在使用devexpress进行数据透视,并且在数据区域中没有显示我从数据库发送的数字,我认为它是valueformatted列中有问题的数字的格式

consulta

在aspx中看起来像这样

vista del pivot

我的代码如下:

<dxwpg:ASPxPivotGrid ID="pvtDatos" runat="server" ClientIDMode="AutoID" ShowLoadingPanelImage="true" OptionsPager-Visible="false"
        Font-Size="Small" Styles-CellStyle-Wrap="False" ShowColumnGrandTotals="FALSE" EnableTheming="True" Theme="BlackGlass" OptionsView-ShowColumnTotals="False" OnCustomCellDisplayText="pvtDatos_CustomCellDisplayText" >  


        <Styles>
            <CellStyle Wrap="False"></CellStyle>
            <GrandTotalCellStyle></GrandTotalCellStyle>
            <FieldValueGrandTotalStyle Font-Size="10pt" Font-Bold="true"></FieldValueGrandTotalStyle>
            <GrandTotalCellStyle Font-Size="10pt" Font-Bold="true"></GrandTotalCellStyle>
        </Styles>
        <Fields>
            <dxwpg:PivotGridField ID="fieldAño" Area="ColumnArea" AreaIndex="0" Caption="Año" FieldName="ANIO" GroupIndex="0" InnerGroupIndex="0"></dxwpg:PivotGridField>
            <dxwpg:PivotGridField ID="fieldMes" Area="ColumnArea" AreaIndex="1" Caption="Mes" FieldName="MES" GroupIndex="0" InnerGroupIndex="1"></dxwpg:PivotGridField>
            <dxwpg:PivotGridField ID="fieldFolio" Area="ColumnArea" AreaIndex="3" Caption="Informe" FieldName="FOLIO" GroupIndex="0" InnerGroupIndex="3"></dxwpg:PivotGridField>
            <dxwpg:PivotGridField ID="fieldFecha" Area="ColumnArea" AreaIndex="2" Caption="Fecha" FieldName="FECHA" GroupIndex="0" InnerGroupIndex="2"></dxwpg:PivotGridField>

            <dxwpg:PivotGridField ID="fieldMuestra" FieldName="MUESTRA" Caption="Parametros" Area="RowArea" AreaIndex="0"></dxwpg:PivotGridField>
            <dxwpg:PivotGridField ID="fieldUnidad" FieldName="CODIGO" Caption="Unidad" Area="RowArea" AreaIndex="1"></dxwpg:PivotGridField>
            
            <dxwpg:PivotGridField ID="fieldValueFormatted" Area="DataArea" AreaIndex="0" FieldName="VALUEFORMATTED" CellFormat-FormatString="{n}" CellFormat-FormatType="Custom"></dxwpg:PivotGridField>

        </Fields>

        <StylesPrint Cell-BackColor2="" Cell-GradientMode="Horizontal" FieldHeader-BackColor2="" FieldHeader-GradientMode="Horizontal" TotalCell-BackColor2="" TotalCell-GradientMode="Horizontal" GrandTotalCell-BackColor2="" GrandTotalCell-GradientMode="Horizontal" CustomTotalCell-BackColor2="" CustomTotalCell-GradientMode="Horizontal" FieldValue-BackColor2="" FieldValue-GradientMode="Horizontal" FieldValueTotal-BackColor2="" FieldValueTotal-GradientMode="Horizontal" FieldValueGrandTotal-BackColor2="" FieldValueGrandTotal-GradientMode="Horizontal" Lines-BackColor2="" Lines-GradientMode="Horizontal"></StylesPrint>
        <Groups>
            <dxwpg:PivotGridWebGroup Caption="AÑO"/>
        </Groups>
    </dxwpg:ASPxPivotGrid>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...