I don't want to export certain columns from the grid. So far I have the code below, however is still exporting every single column even those marked as hidden.
private void UltraGridStatisticsExcelExporter_InitializeColumn(object sender, InitializeColumnEventArgs e) { if (!e.Column.Key.Equals("Foo")) {e.Column.Hidden = true; } }
Thanks!
Hello Fernando,
Which version of Infragistics are you currently using? Have you tried using the BeginExport event? This topic has been previously discussed:
http://ko.infragistics.com/community/forums/t/10309.aspx
Please let me know if you have any questions regarding this matter.
Hi Michael,
I'm using version 13.1.20131.1001 Begin export seems to be deprecated. Any suggestions?
BeginExporter was replaced by the ExportStarted event. So use ExportStarted.