//Populate the data grid view public void populateDataGridView(string query) { dbOperations dbo = new dbOperations(); trdgv.DataSource = dbo.forPopulateTable(query); }