Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:43:11+00:00 2026-06-12T23:43:11+00:00

I need to allow a user to be able to copy cell contents from

  • 0

I need to allow a user to be able to copy cell contents from a DataGrid (Silverlight SDK).

Currently the Datagrid is bound to data by code behind.

The records are loaded into ObservableCollection, then to a PagedCollectionView and is set as ItemsSource to the Dataggrid finally

The problem I’m facing is that when I change

IsReadOnly = “false”

for the Datagrid the user gets to copy the contents of the cell. But if by mistake they make any small change to the cell, then the changes are submitted automatically which is rising exception because the records are readonly.

So all i want to achieve is enable the user to Copy cell content but still keep it as readonly.

I don’t mind if the cached record changes at the client but just don’t want to allow the changes submitted to the service and rise unnecessary exceptions..

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:43:14+00:00Added an answer on June 12, 2026 at 11:43 pm

    You could create a template per column using sdk:DataGridTemplateColumn that holds a read-only text box.

    <sdk:DataGrid>
      <sdk:DataGrid.Columns>
        <sdk:DataGridTemplateColumn Header="My Header" Width="80">
          <sdk:DataGridTemplateColumn.CellTemplate>
            <DataTemplate>
               <TextBox BorderBrush="Transparent" Text="{Binding Path=MyProperty}" Height="25" HorizontalAlignment="Stretch" IsReadOnly="True"/>
            </DataTemplate>
          </sdk:DataGridTemplateColumn.CellTemplate>
        </sdk:DataGridTemplateColumn>
      </sdk:DataGrid.Columns>
    </sdk:DataGrid>
    

    You should be able to copy out of the cells then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to allow a user to process some data. Data is say 100
I am building an app where I need to allow a user to add
Through the website, I need to allow the user to add attachments and store
Is there a winforms month-only picker control? I need to allow the user to
I need a regex that allow user to insert a password in a field.
I need to create a custom user interface using extJS/JSP which will allow me
I'm building a site and need to allow users to be able to create
For specific customer requirement, I need to allow the user of my app (
I'm building a system that need to collect some user sensitive data via secured
I could be re-inventing the wheel - but.. I need to allow a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.