Free mag vol1 | Page 961

CHAPTER 22  ADO.NET PART II: THE DISCONNECTED LAYER Figure 22-19. Your Windows Forms project, after running the Data Source Configuration Wizard At this point, you can run your application, and lo and behold, the grid is filled with the records of the Inventory table! Of course, there is no magic to speak of in this case. The IDE has authored a good amount of code on your behalf and set up the grid control to use it. Let’s dig into some of this autogenerated code. The Generated App.config File If you examine your Solution Explorer, you will find your project now contains an App.config file that contains a element that has been given a somewhat peculiar name, as shown here: 907