TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / DataGridViewZoomPolicy Class
Members Example

In This Topic
    DataGridViewZoomPolicy Class
    In This Topic
    Represents a zoom policy for System.Windows.Forms.DataGridView type control.
    Object Model
    DataGridViewZoomPolicy Class
    Syntax
    'Declaration
     
    
    Public Class DataGridViewZoomPolicy 
       Inherits ZoomPolicy
    public class DataGridViewZoomPolicy : ZoomPolicy 
    Remarks

    This zoom policy will try to zoom all fonts and row height, column width.

    If a System.Windows.Forms.DataGridView has many rows or columns, change all cell's font,row's height or column's width many bring performance problem. Change this property value to false can solve the performance problem.

    Example

    The following code example shows how to use DataGridViewZoomPolicy class.

    You can copy the code to a exsit Windows Forms appliction. And set the form in the sample code as start form.

    If you find a licenses error when run this code. Try to drag a C1Zoom component to a any Form from tool box can generate the licenses information to this project.

    Inheritance Hierarchy

    System.Object
       C1.Win.TouchToolKit.ZoomPolicy
          C1.Win.TouchToolKit.DataGridViewZoomPolicy

    See Also