Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3806
copy/paste hierarchical data in XamGrid
posted

IS there any build in functionality to copy and paste hierarchical data in XamGrid.

If not, is there any workaround to it.

Parents
No Data
Reply
  • 28945
    Offline posted

    Hello Gajender,

    To enable Copy and Paste support for the XamGrid, you can start by setting the control’s ClipboardSettings ( AllowCopy and AllowPaste properties) to true.
    Eg.
    http://help.infragistics.com/Help/Doc/Silverlight/2016.1/CLR4.0/html/xamGrid_Enable_Copy_and_Paste_Support.html

    In XAML:
    <ig:XamGrid x:Name="xamGrid" … >
        <ig:XamGrid.ClipboardSettings>
            <ig:ClipboardSettings AllowCopy="True" AllowPaste="True"/>
        </ig:XamGrid.ClipboardSettings>
    </ig:XamGrid>

    In Visual Basic:
    xamGrid.ClipboardSettings.AllowCopy = True
    xamGrid.ClipboardSettings.AllowPaste = True

    In C#:
    xamGrid.ClipboardSettings.AllowCopy = true;
    xamGrid.ClipboardSettings.AllowPaste = true;

    In Silverlight, you’ll receive an alert for permission when the clipboard is accessed for the first time.
    I’ve attached a sample where I’ve tested that hierarchical data is fully supported.

    Let me know if you have any questions regarding this matter.

    XamGrid_HierarchicalClipboardOperations.zip
Children
No Data