private void optContacts_CheckedChanged(object sender, EventArgs e) { if (optContacts.Enabled == true) { Contacts.Service1 ser = new Contacts.Service1(); BindingSource bs = new BindingSource(); bs.DataSource = ser.ShowAllContacts (myUtill.loginUser.Userid, comboBox1.SelectedValue.ToString()); gvSMS.DataSource = bs; } }