private void btnQuotationSelect_Click(object sender, EventArgs e) { FRM_QuotationSelected s = new FRM_QuotationSelected(); s.ShowDialog(); try { txtBriName.Text = s.dgvQuotations.CurrentRow.Cells[3].Value.ToString(); txtBatName.Text = s.dgvQuotations.CurrentRow.Cells[4].Value.ToString(); txtSarName.Text = s.dgvQuotations.CurrentRow.Cells[5].Value.ToString(); txtContactName.Text = s.dgvQuotations.CurrentRow.Cells[2].Value.ToString(); txtLegal.Text = s.dgvQuotations.CurrentRow.Cells[6].Value.ToString(); id = s.dgvQuotations.CurrentRow.Cells[0].Value.ToString(); dgvQuotationDet.DataSource = ClassOrder.sp_IDSelectedQuotaionsDet(int.Parse(id)); } catch (Exception ex) { } }
public FRM_QuotDetails(string s) { InitializeComponent(); id = s; dgvDetails.DataSource = ClassOrder.sp_IDSelectedQuotaionsDet(int.Parse(s)); }