Esempio n. 1
0
        private void txtSeach_TextChanged(object sender, EventArgs e)
        {
            //GET KeyWORD FORM TEXT BOOks
            string keywords = txtSeach.Text;

            if (keywords != null)
            {
                //SHow USer BAsed ON keyWords
                DataTable DT = userDl.Saerch(keywords);
                dgvUsers.DataSource = DT;
            }
            else
            {
                //ELSE SHOW ALL USERS
                DataTable DT = userDl.Select();
                dgvUsers.DataSource = DT;
            }
        }