FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / AutoClipboard Property

In This Topic
    AutoClipboard Property (C1FlexGrid)
    In This Topic
    Gets or sets whether the grid should handle the clipboard keys and automatically perform cut, copy, paste, and delete operations.
    Syntax
    'Declaration
     
    
    Public Property AutoClipboard As Boolean
    public bool AutoClipboard {get; set;}
    Remarks

    Setting this property to true causes the grid to monitor the keyboard for the following clipboard keys:

    Copy: CTRL-INS, CTRL-C

    Cut: CTRL-X, SHIFT-DEL

    Paste: CTRL-V, SHIFT-INS

    Delete: DEL

    Cut, paste, and delete actions are performed only if the C1FlexGridBase.AllowEditing property is set to true.

    If you want to handle only a subset of the supported keys, add a handler to the System.Windows.Forms.Control.KeyDown event and set the Handled parameter to true to disable some of the keys.

    Automatic clipboard operations only affect the grid data. Styles and images are not copied, pasted, or deleted.

    Values copied to the clipboard are affected by the setting of the C1FlexGridBase.ClipboardCopyMode property.

    See Also