예제 #1
0
        private void ShowDgv()
        {
            BLL_TypePro bltp = new BLL_TypePro();
            DataTable   dt   = bltp.ShowTypePro();

            dataGridView1.DataSource = dt;
        }
예제 #2
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            txtSearch.ForeColor = Color.Black;
            BLL_TypePro bl = new BLL_TypePro();

            if (txtSearch.Text != "")
            {
                DataTable dt = bl.SearchProd(txtSearch.Text);
                dataGridView1.DataSource = dt;
            }
            else
            {
                DataTable dt = bl.ShowTypePro();
                dataGridView1.DataSource = dt;
            }
        }