Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello.
you know that if I bind two TextBox.Text together and set UpdateSourceTrigger="PropertyChanged" , by changing TextProperty of Target TextBox new value is set into another TextBox(Source).
but when i bind my TextBox to a column of Sql server table like following:
<TextBox x:Name="ChargingIDTextBox" Grid.Row="1" Grid.Column="1" Text="{Binding ChargingID, UpdateSourceTrigger=PropertyChanged}"/>

after i change my loaded value into TextBox then result of this changing operation not reflected to the Database until is save my table instance.
so what is benefit of UpdateSourceTrigger in the dataBase fields binding ?
thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900