FlexGrid for WinForms
AutoClipboard Property



Gets or sets whether the grid should handle the clipboard keys and automatically perform cut, copy, paste, and delete operations.
Syntax
'Declaration
 
<C1DescriptionAttribute("Automatically handle the clipboard keys (cut/copy/paste).")>
<DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property AutoClipboard As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
instance.AutoClipboard = value
 
value = instance.AutoClipboard
[C1Description("Automatically handle the clipboard keys (cut/copy/paste).")]
[DefaultValue()]
[C1Category("Behavior")]
public bool AutoClipboard {get; set;}
[C1Description("Automatically handle the clipboard keys (cut/copy/paste).")]
[DefaultValue()]
[C1Category("Behavior")]
public:
property bool AutoClipboard {
   bool get();
   void set (    bool value);
}
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 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 ClipboardCopyMode property.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback