When printing the WebDataGrid, some of the built-in style sets have white text for the column headers. This presents well on the screen, but not on a printout (where the column background isn't printed).
In fact, the column headers are not visible on the printout at all, because the text is white on white.
To fix this, I have had to add css similar to this on pages where printing is likely:
<style media="print" type="text/css"> .igg_NautilusHeaderCaption { color: Black; } </style>It seems like print styles would be a good thing to include with the css stylesheets that come with the controls. I am sure the design wizardsat IG could do a better job than I at making the styles just as attractive on paper as they are on the screen!
Hi Rob,
why don't try to export the data in PDF or Excel format and print after that. You can use WebExcelExporter or WebDocumentExporter.
Samples:
http://samples.infragistics.com/2010.3/WebFeatureBrowser/contents.aspx?showCode=true&t=WebDataGrid/Exporters/WebDataGridExcelExport.aspx~srcview.aspx?path=~srcview.aspx?path=WebDataGrid/Exporters/WebDataGridExcelExport.src
http://samples.infragistics.com/2010.3/WebFeatureBrowser/contents.aspx?showCode=true&t=WebDataGrid/Exporters/WebDataGrid_DocumentExport.aspx~srcview.aspx?path=~srcview.aspx?path=WebDataGrid/Exporters/WebDataGrid_DocumentExport.src
Well, I guess there are five reasons:
And that's just off the top of my head. If I really think about it, I bet I could come up with more. (avoiding the postback altogether? yep, there's another!)