Ch 12, Try It Out, p.456, Line 8 Different result
Minor discrepancy.
If you use the code in the book or use the code in the /End/Chapter12/WroxUnited folder, you will not get a page that looks like Figure 12-20 on page 456. Rather, you get a
gridview with ALL the returned fields from the sql statement (which is then bound to the
gridview). Being a nitpicker, I was interested in getting the exact same result as the book. If one inserts three lines of code as shown below, after the existing code line in the big upper grey box on page 455 " ds2.Tables("ViewLeague")..." , you'll get what the book has.
ds2.Tables("ViewLeague").Columns.Remove("OpponentI D")
ds2.Tables("ViewLeague").Columns.Remove("TotalGoal sFor")
ds2.Tables("ViewLeague").Columns.Remove("TotalGoal sAgainst")
VV
|