WPF Binding One Way and Two Way

One way binding

source targate

  1. <TextBox Text="{Binding ElementName=listView, Path=SelectedItem.EmployeeSalary, Mode=OneWay}">  
Two way binding

two way source data

  1. <TextBox Grid.Row="0" Text="{Binding ElementName=listView, Path=SelectedItem.EmployeeName, Mode=TwoWay}">  
Picture 1: Except employee salary field remaining fields are having two way binding.

main window

Picture 2: Now modifying all fields (except Employee Salary field) are effecting the list view items also because we are having Two Way bindings for each. But Employee Salary filed is having One way binding.

 

some other name