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