Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

Q&A

  1. When using Visual Studio, must I use the properties approach to data binding for all my code?

  1. No; this chapter provided you with examples where either approach would work. All of the code contained in this chapter was also coded both ways.

  1. Why don't you bind the Orders table in the DataGrid in the complex data binding example in this chapter?

  1. It was necessary to bind to the data relation in order to traverse the primary key to foreign key relationship within the DataSet (customer to orders). You want these to be coordinated in your display (the right orders for each customer). If you had bound to the Orders only, you would have a disconnected orders list. The code would run, but the results would be meaningless.

  • + Share This
  • 🔖 Save To Your Account