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
4695
ultraGridExcelExporter --> decimal places
posted

Dear all,

I have the ultragrid which will export to excel. I have set the decimal places in the ultragrid to be 1 decimal place and can see in the UI. But when export to excel, it is not 1 decimal place, instead it is about 8-10 decimal places. Do you know how to solve easily??

Parents
No Data
Reply
  • 71886
    Suggested Answer
    Offline posted

    Hello,

    Could you please try the following code sample and see if it works for you:

            private void ultraGridExcelExporter1_InitializeColumn(object sender, Infragistics.Win.UltraWinGrid.ExcelExport.InitializeColumnEventArgs e)
            {
                e.ExcelFormatStr = e.Column.Format;
            }
    

     Please do not hesitate to contact us if you need any additional assistance.

Children