当前位置:编程学习 > C#/ASP.NET >>

关于Infragistics35.WebUI.UltraWebGrid.ExcelExport.v8.2导出Excel


我用这个插件来导出报表,当页面上有百分比的时候导出来的是小数,请问该如何解决?
UltraWebGridExcelExporter1.DownloadName = ddlSTYLEBRAND.SelectedValue;
UltraWebGridExcelExporter1.Export(UltraWebGrid1);

控件里是这样转换百分比的
protected void UltraWebGrid1_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
        {
            // Allow for deletion    
            e.Layout.AllowDeleteDefault = Infragistics.WebUI.UltraWebGrid.AllowDelete.Yes;
            // allow update for the WebGrid   
            e.Layout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;

            Infragistics.WebUI.UltraWebGrid.UltraGridColumn c;

            // Sets up the format for the Received column   
            c = e.Layout.Bands[0].Columns.FromKey("调出比");   
            c.Format = "###,###0.00%";   
            c.CellStyle.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));   
            c.CellStyle.HorizontalAlign =  HorizontalAlign.Right;   
            c.DefaultValue = 0;
} --------------------编程问答-------------------- 关注。。。 --------------------编程问答--------------------
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,