1

I'm simply binding a WPF DataGridTextColumn with a binding to my grid rows.

<DataGridTextColumn Header="Name" Binding="{Binding Name}" />

I've bound to my row view models. The Name property has a PRIVATE setter.

public string Name 
{
    get { return _name; }
    private set { _name = value; }
}

Shouldn't the datagrid prevent me from accessing the private setter? The grid allows me to access it.

I swear it never used to, unless I'm forgetting something?

4

1 回答 1

0

如果是这种情况,只需将绑定设置为一种方式,问题就解决了......

于 2013-11-02T06:25:14.123 回答