private void btn_add_Click(object sender, EventArgs e) { String name = cmb_in.SelectedItem.ToString(); Quotations sas = new Quotations(); DataTable dt = sas.addQuot(name); dataGridView1.DataSource = dt; }