public BookingsForm() { InitializeComponent(); mysqlConn = new BookingsDbConn(); mysqlConn.connect(); if (mysqlConn.connOpen() == true) { dataGridView1.DataSource = mysqlConn.qry("SELECT * FROM `tblBooking`").Tables[0]; } mysqlConn.connClose(); }