for RuBoard



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


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.


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


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.

for RuBoard

Sams Teach Yourself ADO. NET in 24 Hours
Sams Teach Yourself ADO.NET in 24 Hours
ISBN: 0672323834
EAN: 2147483647
Year: 2002
Pages: 237 © 2008-2017.
If you may any questions please contact us: