1. sayfa
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(); }
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
< Bu mesaj bu kişi tarafından değiştirildi ORGANIKHOSAF -- 6 Eylül 2018; 22:12:4 >