Print Events and Customization for GridView
DataGridView .NET Component for Windows Forms allows the users easily to customize the grid print output for individual cell. This is accomplished by using the provided events, FormatPrintCell and PaintPrintCell. 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.
Create Formatting Print Grid Cell in C#
To create formatting cell in grid, we need to use the event, FormatPrintCell, included in the GridView C# class. This event works in the same way of any other formatting events of Kettic GridView and allows the developers to format the appearance of the cells that will be printed. The following is the C# code that shows how to customize the appearance of the header and the summary rows.
How to Paint Print Grid Cell in C#
To paint print grid cell in C#.NET template projects, we need to use the event, PaintPrintCell, included in the GridView C# class. This event allows the developers to access the grid cell and paint the cells as their needs. The following is the C# code that shows how to paint a blue dot if the product quantity is larger than 50 and a purple dot when it is smaller.
|
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 |