April 2002
Intermediate to advanced
416 pages
11h 50m
English
Chapter 5 explains methods you can use to load program-generated data. Example program ProgramGenerated, shown in Figure 6.1, creates a DataTable object and fills it with data. It then binds the DataTable to a DataGrid control to display the results.

The ProgramGenerated example program uses the code shown in Listing 6.1 to display its data. The form’s Load event handler creates a new DataTable object. It uses the DataTable’s Columns collection to add new columns to hold the rows’ values. It then ...
Read now
Unlock full access