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

  • Home
  • SEARCH
  • 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 1084277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:32:30+00:00 2026-05-16T22:32:30+00:00

I want to bind an ‘ObservableCollection’ to a Silverlight dataGrid and allow the contents

  • 0

I want to bind an ‘ObservableCollection’ to a Silverlight dataGrid and allow the contents to be editable.

I’ve got the following XAML, which allows the editing in the UI, but once I click off the row it changes back to the original.

I’m obviously missing something, any ideas?

    <sdk:DataGrid AutoGenerateColumns="False"
                  Height="81"
                  Margin="520,349,60,0"
                  Name="MessageBoxButtons"
                  ItemsSource="{Binding Path=ButtonsView}"
                  AlternatingRowBackground="Gainsboro"
                  RowBackground="White"
                  HeadersVisibility="All"
                  BorderThickness="2"
                  VerticalAlignment="Top"
                  CanUserSortColumns="False">                      
        <sdk:DataGrid.Columns>
            <sdk:DataGridTextColumn Binding="{Binding}"
                                    CanUserReorder="True"
                                    CanUserResize="True"
                                    CanUserSort="True"
                                    Width="*"
                                    Header="Button Text" />               
        </sdk:DataGrid.Columns>
    </sdk:DataGrid>
  • 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-05-16T22:32:30+00:00Added an answer on May 16, 2026 at 10:32 pm

    Strings are immutable. That is, you cannot change the value of a specific instance of a string. What happens when you assign string values to strings is that a new String object is created and assigned to your variable.

    Binding normally works on properties of objects. You are basically treating the string as both a source of data and a property that can be changed. The end result is that the value is changed then thrown away as the actual strings in the list are not replaced.

    You want to have a list of simple objects that have string properties instead.

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

Sidebar

Related Questions

I've got a snippet I want to bind to a key: (define-key (lisp-interaction-mode-map) (kdb
I've got a collection of ViewModels and want to bind a ListBox to them.
I want to bind datagrid view column visibility with a property of class. I
I want to bind a lists position to its own height in XAML. So
I want to bind a column of my DataGrid to a nested property. I
I want to bind a List to a WPF combobox in xaml. Wondering what
I want to bind some properties from my code-behind .xaml.cs to some xaml-code, just
I want to bind Groupboxes to my stackpanel. c#: internal ObservableCollection<GroupBox> BindingTest { get
I want to bind my ListView control to a generic list of objects? I
I want to bind Ctrl-Alt-N to an External Tool (Nant build) in SharpDevelop, how

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.