void Show_Firma() { Firmenbuch_View Frm_View = new Firmenbuch_View(); //Load data from datagridview to form Notizen_Update Frm_View.id.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); Frm_View.firma.Text = this.dataGridView1.CurrentRow.Cells[1].Value.ToString(); Frm_View.strasse.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString(); Frm_View.plz.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString(); Frm_View.ort.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString(); Frm_View.land.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString(); Frm_View.tel.Text = this.dataGridView1.CurrentRow.Cells[6].Value.ToString(); Frm_View.mob.Text = this.dataGridView1.CurrentRow.Cells[7].Value.ToString(); Frm_View.fax.Text = this.dataGridView1.CurrentRow.Cells[8].Value.ToString(); Frm_View.email.Text = this.dataGridView1.CurrentRow.Cells[9].Value.ToString(); Frm_View.www.Text = this.dataGridView1.CurrentRow.Cells[10].Value.ToString(); Frm_View.bank.Text = this.dataGridView1.CurrentRow.Cells[11].Value.ToString(); Frm_View.bic.Text = this.dataGridView1.CurrentRow.Cells[12].Value.ToString(); Frm_View.iban.Text = this.dataGridView1.CurrentRow.Cells[13].Value.ToString(); Frm_View.blz.Text = this.dataGridView1.CurrentRow.Cells[14].Value.ToString(); Frm_View.zusatz.Text = this.dataGridView1.CurrentRow.Cells[15].Value.ToString(); //Cells[16] ist Image Frm_View.UID.Text = this.dataGridView1.CurrentRow.Cells[17].Value.ToString(); Frm_View.fn.Text = this.dataGridView1.CurrentRow.Cells[18].Value.ToString(); Frm_View.ShowDialog(); }
private void Firmenbuch_Profile_Report_Load(object sender, EventArgs e) { Firmenbuch_View F_pr_report = (Firmenbuch_View)Application.OpenForms["Firmenbuch_View"]; //Convert Kontostand textbox to integer int intFRMID; intFRMID = Convert.ToInt32(F_pr_report.boxid.Text); intFRMID = int.Parse(F_pr_report.boxid.Text); // TODO: This line of code loads data into the 'um_db_DataSet.firmenbuch' table. You can move, or remove it, as needed. this.firmenbuchTableAdapter.Fill(this.um_db_DataSet.firmenbuch, intFRMID); this.reportViewer1.RefreshReport(); }