问题描述
我正在使用devexpress进行数据透视,并且在数据区域中没有显示我从数据库发送的数字,我认为它是valueformatted列中有问题的数字的格式
在aspx中看起来像这样
我的代码如下:
<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 (将#修改为@)