Arama butonu
Bu konudaki kullanıcılar: 1 misafir
2
Cevap
1138
Tıklama
0
Öne Çıkarma
Devexpress GridControl Current Row komutu var mı?
O
7 yıl
Yarbay
Konu Sahibi

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
7 yıl
Yarbay

DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.