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
20
Export multi-level grid style.
posted

Hi,

I am using Infragistics NetAdvantage WPF 2009.2,

I want to export the contents of the XamDatagrid(xamFeatureBrowser > xamDataGrid > FieldSettings Overrides Grid Style) to Excel using the DataPresenterExcelExporter.

So, I had to modify the example source code for testing. (FieldSettingsOverrides_Samp.xaml.cs)

    // added source code
    private void btnTest_Click(object sender, RoutedEventArgs e)
    {
        DataPresenterExcelExporter exporter = new DataPresenterExcelExporter();
        exporter.Export(this.XamDataGrid1, @"c:\test.xls", WorkbookFormat.Excel97To2003, new ExportOptions());
    }

xamFeatureBrowser > xamDataGrid > FieldSettings Overrides Grid Style

Result of Export

What should i do export the header?

thank you.

Parents
No Data
Reply
  • 2180
    Verified Answer
    Offline posted

    Hi,

    You don't have to do anything special to export the xamDataGrid headers. I have tried your case but in the current 10.3 version there is no such problem. It looks like a bug that was fixed meanwhile.

    Best regards

Children
No Data