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