private void checkBox2_CheckedChanged(object sender, EventArgs e) { checkBox1.Enabled = false; checkBox3.Enabled = false; localhost.Service1 service = new localhost.Service1(); DataSet ds = service.KisiDondurtc(textBoxarama.Text); dataGridView1.DataSource = ds; dataGridView1.DataMember = ds.Tables[0].TableName; if (checkBox2.Checked == false) { checkBox1.Enabled = true; checkBox3.Enabled = true; } }