Hi all,
how it's possible do change the row header height during a pdf export.I change the text in the row header cell during the export.
Can someone help me.
Thanks
What do you mean by the "row header cell"? Do you mean the column header? If so, you might be able to use the HeaderCellExporting/HeaderCellExported events or even the HeaderRowExporting/HeaderRowExported event to set the Height, i.e.:
e.ColumnHeaderContainer.Height = new FixedHeight(30);
-Matt
Hi Matt,
thanks for your answer. I tried out your suggestion, but it doesn't solves my problem. I extented the content of the column header with following code, but only a part of it is shown.
private void gridDocExporter_HeaderCellExporting(object sender, Infragistics.Win.UltraWinGrid.DocumentExport.HeaderCellExportingEventArgs e) { try { if (e.HeaderType == Infragistics.Win.UltraWinGrid.DocumentExport.HeaderTypes.GroupHeader) e.Cancel = true; if (e.HeaderType == Infragistics.Win.UltraWinGrid.DocumentExport.HeaderTypes.ColumnHeader) { e.ColumnHeaderContainer.Height = new FixedHeight(30);
e.GridHeader.Caption = (e.GridHeader.Group.Tag as string) + System.Environment.NewLine + e.GridHeader.Caption; } } catch {} }
I just used 30 as an example of the height. Are you saying that the width is being clipped in this case? If that's the case, you may have to adjust the column widths in the BeginExport event (I'm not sure if there's a better event for that). If it's the height that's the problem, does a larger value help? It's possible that the exporter is overwriting the height when exporting, so you may want to try using the HeaderCellExported event instead.