1: 2: 3: 4: 5: 6: 7:
Try dgvAERGrid.DataSource = AERDB.GetAERList Catch ex As SqlException MessageBox.Show("Database error retrieving data from database.", "Database Error") Catch ex As Exception MessageBox.Show(ex.Message, ex.GetType.ToString) End Try