Şimdi Ara

Devexpress GridControl Current Row komutu var mı?

Bu Konudaki Kullanıcılar:
2 Misafir - 2 Masaüstü
5 sn
4
Cevap
0
Favori
1.088
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Arkadaşlar merhaba datagridview de aşağıdaki komutla mausla hücreyi seçip sil butonuna basıyordum siliyordu

    SqlCommand komut = new SqlCommand("delete from EmlakBilgi WHERE id='" + dataGridView1.CurrentRow.Cells[0].Value.ToString() + "'", baglanti);



    gridcontrolda bunu nasıl yaparım bulamadım internetde de araştırdım bulamadım

    Birde datagridde tıkladığım zaman textboxlara getirebiliyordum bunu da söyleyebilrseniz sevinirim mümkünse

    rivate void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
    {
    comboBox1.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
    comboBox5.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
    comboBox2.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
    textBox1.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
    textBox2.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString();
    comboBox3.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
    comboBox4.Text = dataGridView1.CurrentRow.Cells[7].Value.ToString();
    textBox3.Text = dataGridView1.CurrentRow.Cells[8].Value.ToString();
    textBox4.Text = dataGridView1.CurrentRow.Cells[9].Value.ToString();
    textBox5.Text = dataGridView1.CurrentRow.Cells[10].Value.ToString();
    }



    < Bu mesaj bu kişi tarafından değiştirildi ORGANIKHOSAF -- 6 Eylül 2018; 22:12:4 >



  • Gökşen PASLI G kullanıcısına yanıt
    Teşekkür ederim oldu
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.