Beispiel #1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     SetButtonsActive0();
     try
     {
         string[] s = ElementsSettings.SetDataFromCustomersDGVToTextBoxes(dataGridView1, e);
         idOfChosenRow1        = Convert.ToInt32(RequestsSQLT.SelectNthIdFromCustomerWherePassportDataDefinedToString(conn, Convert.ToInt32(s[0]), Convert.ToInt32(s[1])));
         textBox2.Text         = s[0];
         textBox3.Text         = s[1];
         textBox4.Text         = s[2];
         textBox5.Text         = s[3];
         textBox6.Text         = s[4];
         dateTimePicker1.Value = Convert.ToDateTime(s[5]);
         //textBox7.Text = s[6];
         textBox8.Text = s[6];
     } catch { }
 }