예제 #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            Contacts.Service1 ser = new Contacts.Service1();
            //ser.SearchContacts(myUtill.loginUser.Userid,cmbCon.SelectedValue.ToString(), txtName.Text);

            BindingSource b = new BindingSource();

            b.DataSource     = ser.SearchCbyName(myUtill.loginUser.Userid, cmbCon.SelectedValue.ToString(), txtName.Text);
            gvCon.DataSource = b;
        }