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 Design
WinForms UI Controls