customerID = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value); textBox1.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); textBox2.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); textBox3.Text = dataGridView1.SelectedRows[0].Cells[3].Value.ToString(); textBox4.Text = dataGridView1.SelectedRows[0].Cells[4].Value.ToString(); numericUpDown1.Value = dataGridView1.SelectedRows[0].Cells[5].Value.ToString(); numericUpDown2.Value = dataGridView1.SelectedRows[0].Cells[6].Value.ToString();
numericUpDown1.Value = (int)dataGridView1.SelectedRows[0].Cells[5].Value; numericUpDown2.Value = (int)dataGridView1.SelectedRows[0].Cells[6].Value;
numericUpdateDown1.Value = (int)dataGridView1.SelectedRows[0].Cells[5].Value;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)