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.
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