Exemplo n.º 1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         catID                 = Convert.ToInt32(row.Cells["catIDGV"].Value.ToString());
         Categrytxt.Text       = row.Cells["catNameGV"].Value.ToString();
         ActiveDD.SelectedItem = row.Cells["StatusGV"].Value.ToString();
         MainClass.disable(leftpanel);
     }
 }
Exemplo n.º 2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         prodID                  = Convert.ToInt32(row.Cells["proIDGV"].Value.ToString());
         pronamtxtp.Text         = row.Cells["proNameGV"].Value.ToString();
         pptxt.Text              = row.Cells["PriceGV"].Value.ToString();
         barcodetxtp.Text        = row.Cells["barcodeGV"].Value.ToString();
         Expirypickerp.Value     = Convert.ToDateTime(row.Cells["ExpiryGV"].Value.ToString());
         categoryDD.SelectedItem = row.Cells["CatGV"].Value.ToString();
         MainClass.disable(leftpanel);
     }
 }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         UserID                      = Convert.ToInt32(row.Cells["userIDGV"].Value.ToString());
         nametxtusr.Text             = row.Cells["NameGV"].Value.ToString();
         usernametxtusr.Text         = row.Cells["UserNameGV"].Value.ToString();
         pswttxtusr.Text             = row.Cells["PasswordGV"].Value.ToString();
         phonetxtusr.Text            = row.Cells["PhoneGV"].Value.ToString();
         emailtxtusr.Text            = row.Cells["EmailGV"].Value.ToString();
         Statuscombousr.SelectedItem = row.Cells["StatusGV"].Value.ToString();
         MainClass.disable(leftpanel);
     }
 }
Exemplo n.º 4
0
 private void Categories_Load(object sender, EventArgs e)
 {
     MainClass.disable(leftpanel);
 }