I'm trying to print the contents of a grid, but no matter what I try, it won't print the caption.
Here's the code that I use for printing:
grdDimensions.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True grdDimensions.Text = "Document Caption" grdDimensions.DisplayLayout.BorderStyleCaption = Infragistics.Win.UIElementBorderStyle.Rounded1 grdDimensions.PrintPreview(grdDimensions.DisplayLayout, c_pdSetup)
What am I not doing? :)
tnx all!
g.
The grid caption doesn't print. This is intentional. You can Submit a feature request to Infragistics.
If you want to print page headers or footers, you can do this using the InitializePrint (or InitializePrintPreview) event. Check out e.DefaultLogicalPageLayoutInfo.PageHeader or PageFooter.