Two way Databinding means that any data-related changes affecting the model are immediately propagated to the matching view(s), and vice-versa.
Refer to the below code snippet to declare the dataSource property through two way databinding in view.
Refer to the below code snippet to pass the data to dataSource property in model.
Now the dataSource is appended in view and Model. We can change the data into view and model through any events in the Controls.
Here we are going to bind a data dynamically through a button click event in both view and model.
Refer to the below code snippet
Refer to the below code snippet to append the data dynamically in a click event.
Refer to the below sample link with above code snippets.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|