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
345
Allow a field to be copied, but not editable
posted

I don't want the fields in the grid to be editable, but setting the AllowEdit property to false also means that the user cannot copy the value of the field to the clipboard. Any suggestions?

  • 27093
    posted

    Hello,

     

    What you can do is set your Fields’ Settings’ EditorStyle properties to a Style for the XamEditor you are using and add a Setter for the IsReadOnlyProperty. Or e.g. you can put a keyless Style for the XamTextEditor in the XamDataGrid’s Resources like so:

     

    <igDP:XamDataGrid.Resources>

        <Style TargetType="{x:Type igEditors:XamTextEditor}" >

            <Setter Property="IsReadOnly" Value="True" />

        </Style>

    </igDP:XamDataGrid.Resources>

     

    which will make all XamTextEditors in your grid readonly (and do the same for the other editors you are using).

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support