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 8322155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:17:03+00:00 2026-06-08T23:17:03+00:00

I have a datagrid (A C1 datagrid, in this case) bound to a property

  • 0

I have a datagrid (A C1 datagrid, in this case) bound to a property in my View Model. The XAML for the datagrid looks like this:

        <c1:C1DataGrid 
            AutoGenerateColumns="False"
            IsReadOnly="False"
            Margin="5" Width="auto"
            MinWidth="250"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch"
            Name="dgNotifAssign"
            CanUserAddRows="True" 
            ItemsSource="{Binding Path=notifCodeSubs.notification_configuration}"
            >


            <c1:C1DataGrid.Columns>
                <c1:DataGridTextColumn 
                    Binding="{Binding Path=user_id}" 
                    Header="Recipient" 
                    VerticalAlignment="Stretch"
                    SortMemberPath="user_id"  
                    >

The property that it is bound to, in my viewmodel, looks like this:

Public Property notifCodeSubs As dsPeruseFM
    Get
        If _notifCode Is Nothing Then
            _notifCode = New dsPeruseFM
        End If
        Return _notifCode
    End Get
    Set(ByVal value As dsPeruseFM)
        MsgBox("If you can see this, success!")
    End Set
End Property

In the codebehind I create an instance of the viewmodel and set the datacontext of the xaml to that instance, rather simple…

Dim vm As New ctrlAlertNotifyVM

As well as:

ctrlAlertNotifyXML.DataContext = vm

The above configuration compiles and reads data just fine. The grid is populated with all the correct data, etc. The problem comes when I try to add Mode=twoway to the ItemsSource on the datagrid. At that point VS2010 spits out the following error:

A TwoWay or OneWayToSource binding cannot work on the read-only property ‘notification_configuration’ of type ‘PeruseFM.dsPeruseFM’.

I’m quite sure that all of my properties are read/write. And while the set command for this is nothing more than a message box at this point, it doesn’t seem like I can even access that.

So the question is… has anybody ever encountered this issue before?

Update, response to question “What does notification_configuration look like?” from sixlettervariables:

Public Function codeChanged(Optional ByVal x As String = "")

    If _notifCode Is Nothing Then
        _notifCode = New dsPeruseFM
    End If
    taNotifSubs.fillNotifSubs(notifCode:=x, dataTable:=_notifCode.notification_configuration)
    Return _notifCode
End Function
  • 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-08T23:17:06+00:00Added an answer on June 8, 2026 at 11:17 pm

    You’ve shown us that notifCodeSubs is read/write, however, that is not the actual property you’ve bound to.

    From this viewpoint, the error message is fairly self-explanatory:

    …read-only property ‘notification_configuration’…

    Therefore you cannot apply TwoWay binding to that property as an ItemsSource.

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

Sidebar

Related Questions

I am new to Flash and AS3. I have a DataGrid like this Item
I have a View that displays a DataGrid which is bound to an ObservableCollection
I have a datagrid bound to a list of a custom model class. In
I have a datagrid who's ItemsSource is a strongly typed IEnumerable object In this
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I'm having a small problem. I have this grid with a column: <data:DataGrid ColumnHeaderStyle={StaticResource
I have a DataGrid in WPF bound to an observable collection. In my UI
I have a data grid in a view that is bound to a List
I have datagrid. the source for this datagrid is a url that returns n
I have this DataGrid: <mx:DataGrid id=myDataGrid> <mx:columns> <mx:DataGridColumn dataField=colA headerText=Column A: width=40 headerRenderer=path.customComponents.VerticalHeader itemRenderer=path.customComponents.CustomDataGridItemRenderer

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.