Ejemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            FRM_SEARCH FRM = new FRM_SEARCH("supplier");

            FRM.ShowDialog();
            TXTSU_ID.Text     = FRM.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            TXTSU_NAME.Text   = FRM.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            TXTSU_MOBILE.Text = FRM.dataGridView1.CurrentRow.Cells[2].Value.ToString();
        }
Ejemplo n.º 2
0
        private void BTNSHOWPRODUCTDATA_Click(object sender, EventArgs e)
        {
            FRM_SEARCH frm = new FRM_SEARCH("product");

            frm.ShowDialog();
            TXTPRODUCTID.Text    = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            TXTPRODUCTNAAME.Text = frm.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            TXTPRODUCTPRICE.Text = frm.dataGridView1.CurrentRow.Cells[5].Value.ToString();
        }
        private void BTNSHOWSUPPDATA_Click(object sender, EventArgs e)
        {
            FRM_SEARCH frm = new FRM_SEARCH("customer");

            frm.ShowDialog();
            TXT_ID.Text     = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            TXT_NAME.Text   = frm.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            TXT_MOBILE.Text = frm.dataGridView1.CurrentRow.Cells[3].Value.ToString();
        }