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
385
Can the UltraGridExcelExport export the data columns as they are formatted in UltraWinGrid?
posted

Hi,

Specifically, I want to export data, with its numeric formatting intact into a new excel spreadsheet. All works fine, however the number formats(#,##0 and $#,##0.00) defined in the WinGrid designer are only exported in the column grand totals. How is the numeric formatting exported?

Looking forward to your advice.

Rick

Parents
  • 48586
    Verified Answer
    posted

    Hello,

     

    If you want to export an UltraGridColumn with its format, you should handle InitializeColumn event of the UltraGridExcelExporter and to set ExcelFormatStr of the argument using the code like the following in the mentioned event :

    if (!string.IsNullOrEmpty(e.Column.Format))

                {

                    e.ExcelFormatStr = e.Column.Format;

                }

     

    Let me know if you have any further questions.

Reply Children
No Data