Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
After switching from Version 2010/3 to 2018/2 Excelexport changed...
posted

Hello,

we are using the "UltraGridExporter" to export datas from an ultraingrid to excel. After upgrading our solution from the very old version 2010/3 to 2018/2 we have two issues:

#1: Decimal-Columns are in the wrong format: The result ist by example "923.000", expected is "923.00"

We use this code, wich works perfect in the old version:

private static void grdExport_InitializeColumn(object sender, Infragistics.Win.UltraWinGrid.ExcelExport.InitializeColumnEventArgs e)
    {
        if (e.Column.DataType == typeof(Decimal))
        {
            e.ExcelFormatStr = "#,#0.00";
        }
    }

#2: Columns with drop-down-combos shows this combo also in excel.

See this screenshot:

  

The whole excelfile contains only "5500" (Ultragrid was filtered before exported)

The combo shows every value from the grid

What can we do?

Greetings from germany, Karsten Heimer.

Parents Reply Children