private void quGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if ((quGridView.RowCount >= 0) && (e.RowIndex >= 0)) { DataGridViewRow rows = quGridView.Rows[e.RowIndex]; if (e.ColumnIndex == 1) { newQUform qu = new newQUform(); aseno = rows.Cells[0].Value.ToString(); qu.aseno.Text = rows.Cells[0].Value.ToString(); qu.qudate.Text = rows.Cells[2].Value.ToString(); qu.projectTXT.Text = rows.Cells[3].Value.ToString(); qu.addressTXT.Text = rows.Cells[4].Value.ToString(); qu.telno.Text = rows.Cells[5].Value.ToString(); qu.faxno.Text = rows.Cells[6].Value.ToString(); qu.othercharges.Text = rows.Cells[7].Value.ToString(); qu.preparedby.Text = rows.Cells[8].Value.ToString(); qu.approvedby.Text = rows.Cells[9].Value.ToString(); quClass q = new quClass(this, qu); q.loaditems(qu.aseno.Text); qu.aseno.Enabled = false; qu.panel1.Enabled = true; qu.ShowDialog(); } } }
private void quaddnewBTN_Click(object sender, EventArgs e) { newQUform q = new newQUform(); q.ShowDialog(); }
public quClass(Form1 frm1val, newQUform qu) { frm1 = frm1val; qufrm = qu; }