문제

With WPF how can I bind the IsEnabled property of a Button to the selected row's DataGridCheckBoxColumn value of my grid?

So every time the selected row of my grid changes the button will be enabled/disabled depending on the value of one of it's columns.

도움이 되었습니까?

해결책

The button would look something like this

<Button Content="Update" IsEnabled="{Binding ElementName=grid, Path=SelectedItem.SomeValue}"/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top