Пример #1
0
        private void btnList_Click(object sender, EventArgs e)
        {
            panel1.Visible = true;
            DataTable dt = dbMainClass.getDetails("CUSTOMER");

            dataGridView1.DataSource = dt;
        }
Пример #2
0
        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);
        }