Version

AllowClipboardOperations Property

Returns or sets which clipboard operations can be performed.
Syntax
'Declaration
 
Public Property AllowClipboardOperations As Nullable(Of AllowClipboardOperations)
public Nullable<AllowClipboardOperations> AllowClipboardOperations {get; set;}
Remarks

This property determines which clipboard actions can be performed by the end user on the records and/or cells that are selected within the DataPresenter.

Note: These operations have no relation to any clipboard operations that may be performed/allowed by an editor that is in edit mode. For example, the value of this property has no bearing on whether you can copy values from a XamTextEditor to the clipboard while in edit mode. Also, the clipboard operations of the DataPresenter will not be performed while a cell is in edit mode.

Example
The following sample demonstrates how to enable the clipboard functionality. It also sets the CopyFieldLabelsToClipboard to false to prevent the labels from being included in the output.

xmlns:igDP="http://infragistics.com/DataPresenter"

<igDP:XamDataGrid x:Name="grid"
    
BindToSampleData="True"
    
IsUndoEnabled="True"
    
UndoLimit="100">
    
<igDP:XamDataGrid.FieldLayoutSettings>
        
<igDP:FieldLayoutSettings 
            
AllowClipboardOperations="All"
            
CopyFieldLabelsToClipboard="False" />
    
</igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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