Version

GetColumnFromPrintColumn Method

Gets the column in the grid corresponding to the passed in column from a print layout when printing.
Syntax
'Declaration
 
Public Function GetColumnFromPrintColumn( _
   ByVal printColumn As UltraGridColumn _
) As UltraGridColumn
public UltraGridColumn GetColumnFromPrintColumn( 
   UltraGridColumn printColumn
)

Parameters

printColumn
A column from a print layout.

Return Value

Corresponding column or null if none found.
Remarks

When printing, print-previewing or excel-exporting, the UltraGrid makes clone of the UltraGridBase.DisplayLayout to make a print layout. The print layout has it's own set of columns. This method is used to get the column from the display layout that corresponds to a column from the print layout. This is useful, for example, in event handlers of printing, print-previewing or excel-exporting related events where you have access to a print column however you would like to get the corresponding column from the display layout.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also