예제 #1
0
        private void TxtSearch_TextChanged(object sender, EventArgs e)
        {
            String keywords = txtSearch.Text;

            if (keywords != null)
            {
                DataTable dt = dal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                DataTable dt = dal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #2
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            if (txtSearch.Text == "")
            {
                MessageBox.Show("Please enter a keyword to search");
            }
            else
            {
                //Get the keyowrd from text box
                string keyword = txtSearch.Text;

                if (keyword != null)
                {
                    //Search the Dealer or Customer
                    DataTable dt = dcDal.Search(keyword);
                    dgvDeaCust.DataSource = dt;
                }
                else
                {
                    //Show all the Dealer or Customer
                    DataTable dt = dcDal.Select();
                    dgvDeaCust.DataSource = dt;
                }
            }
        }
예제 #3
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            string keywords = txtSearch.Text;

            if (keywords != null)
            {
                DataTable dt = dcdal.Search(keywords);
                dgvDlr_Customer.DataSource = dt;
            }
            else
            {
                DataTable dt = dcdal.Select();
                dgvDlr_Customer.DataSource = dt;
            }
        }
예제 #4
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            string keyword = txtSearch.Text;

            if (keyword != null)
            {
                DataTable dt = dcDal.Search(keyword);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #5
0
        private void txtSearch_OnValueChanged(object sender, EventArgs e)
        {
            string keywords = txtSearch.Text;

            if (txtSearch.Text != null)
            {
                DataTable dt = dcDal.Search(keywords);
                GDVCustomer.DataSource = dt;
            }
            else
            {
                DataTable dt = dcDal.Select();
                GDVCustomer.DataSource = dt;
            }
        }
예제 #6
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            //Get the keyword from textbox
            string keywords = txtSearch.Text;

            if (keywords != null)
            {
                DataTable dt = dcDal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #7
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            //get the keywords
            string keywords = txtSearch.Text;

            //fill the categories based on keywords
            if (keywords != null)
            {
                DataTable dt = dcdal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                DataTable dt = dcdal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #8
0
        } //This method is to Delete the Data in the Table

        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            //Get the Keyword form the Textbox
            string keyword = txtSearch.Text;

            if (keyword != null)
            {
                //Search the Dealer or Customer
                DataTable dt = dcDal.Search(keyword);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                //Show all the Dealer or Customer
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        } //tThis Method is created to Search the data in the Data Grid View
예제 #9
0
        private void txtsearch_TextChanged(object sender, EventArgs e)
        {
            //Getting the keywords from form
            string keywords = txtSearch.Text;

            if (keywords != null)
            {
                //Search the dealer or customer
                DataTable dt = dcdal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                //display All the products
                DataTable dt = dcdal.select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #10
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            //Get keywords
            string keywords = txtSearch.Text;

            //Filter the category based on keywords
            if (keywords != null)
            {
                // use search method to display the categories
                DataTable dt = dcDal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                //use select method to display the categories
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #11
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            // get the keyword from text box
            string keyword = txtSearch.Text;

            if (keyword != null)
            {
                //Search dealer or customer  db
                DataTable dt = dcDal.Search(keyword);
                // load the data grid view with data from db
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                // Show all the Dealer or customer data
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }
예제 #12
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            // Get Keyword from form

            string keywords = txtSearch.Text;

            if (keywords != null)
            {
                // then we will search the products. We Need Data Table for that
                DataTable dt = dcDal.Search(keywords);
                dgvDeaCust.DataSource = dt;
            }
            else
            {
                // otherwise we will display products
                DataTable dt = dcDal.Select();
                dgvDeaCust.DataSource = dt;
            }
        }