private void btnList_Click(object sender, EventArgs e) { panel1.Visible = true; DataTable dt = dbMainClass.getDetails("CUSTOMER"); dataGridView1.DataSource = dt; }
public DataTable GetVendorDetaisInDataTable() { DataTable dt = new DataTable(); try { DB_Main con = new DB_Main(); dt = con.getDetails("VendorDetails"); } catch (Exception ex) { dt.Clear(); } return(dt); }