private void dataGridView1_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e) { int i =int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()); if (e.ColumnIndex == (dataGridView1.Columns.Count - 9)) { { // int i = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()); updateFaults obj = new updateFaults(i); obj.Show(); } }
private void updateFaults_Load(object sender, EventArgs e) { cmbclient.Text = fault_id.ToString(); textBox1.Text = fault_id.ToString(); cmbsys.Text = fault_id.ToString(); cmbsite.Text = fault_id.ToString(); cmbcategory.Text = fault_id.ToString(); textBox4.Text = fault_id.ToString(); textBox5.Text = fault_id.ToString(); textBox6.Text = fault_id.ToString(); }
Textbox1.text=dataGridView1.SelectedRows[0].Cells[0].Value; Textbox2.text=dataGridView1.SelectedRows[0].Cells[1].Value; Textbox3.text=dataGridView1.SelectedRows[0].Cells[2].Value; . . .
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)