This exercise requires the Megacities database. Using Visual Basic, write a program that displays (in a DataGridView control) the names of all the cities, their countries, and the projected percentage growth of their populations from 2010 to 2015. Records should be sorted in descending order by their projected population growth. See the figure below.
Suggested Control Names and Attributes:
Name Property | Text Property | Control Type | Notes |
frmMegacities | Megacities | Form | Holds Controls |
btnDisplay | Display Data | Button | Triggers event to display data |
dgvOutput | DataGridView | Displays data |