SqlCommand komut = new SqlCommand("update okul set OgrenciSoyad='" + textBox2.Text + "',No='" + textBox3.Text + "',Sinif='" + textBox4.Text + "',Bolum='" + comboBox1.Text + "'where Ogrenciad='" + textBox1.Text + "'", baglan);
Datagridview'de güncelleme işlemi yapmak için yazdım. Hepsi güncelleniyor sıkıntısız fakat where alanında kullandığım ogrenciad kısmı yani textbox1 kısmı ne yaparsam yapayım değişmiyor. Bunun için ne yapabilirim ?