Grid Printing Style using GridView
DataGridView .NET Component for Windows Forms provides various settings to customize the grid print style with GridView in C#.NET. The GridView supports native print and the users of the application can directly pass the content of grid to a printer. By using the GridView .NET WinForms Control with friendly user dialogs, the UI designers can easily change the print settings, set watermark to the content of the grid and preview the print gird.
Properties for Customizing Grid Print Style
To create custom grid printing style, the users need to use the PrintStyle property included in the GridView control. The customization can be accomplished by either setting this property to a new instance of the GridPrintStyle C# class or editing the current one. The following are the properties used for customizing the grid printing.
C# code for Customizing GridPrintStyle
The following is the C# code which uses the properties above to customize the grid print style.
Print Multiple Pages of Grid in C#.NET Projects
Kettic GridView C#.NET WinForms control is capable of printing multiple pages for gird. This feature is done by setting the ViewDefinition to TableViewDefinition and is enabled by defining the collection of columns all pages will contain. Here we need to use the PrintPages collection of the TableViewDefinitionPrintRenderer and the PrintPages collection includes collection of columns, each of which stands for a separate page.
The C# code below demonstrates how to print multiple pages.
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlGridView - Get Started in C#GridView - PropertiesGridView - ColumnGridView - RowGridView - CellsGridView - EditorsGridView - Context MenuGridView - Populating with DataGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingGridView - FilteringGridView - Expression EditorInsert/ Update/ Delete RecordsGridView - View DefinitionTableColumn GroupGridView - Exporting DataExport to ExcelExport Data in a Group to ExcelExport to CSVExport to HTMLExport to PDFStyling and AppearanceThemeImageAlternating Row ColorGridView - LocalizationSave and Load LayoutGridView - Print SupportPrint StylePrint EventsWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |