Binding IsReadOnly of a DataGridTextColumn to a DataGridTemplateColumn checkbox IsChecked
问题 Basically, I have a DataGrid with several columns, and I want to enable (changing the IsReadOnly property) a DataGridTextColumn based on a CheckBox IsChecked , located in another DataGridTemplateColumn of the same DataGrid . Here is (the important part of) the code: <DataGrid Name="lstTags" Grid.Row="0" ItemsSource="{Binding Path = LinesCollection}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False"