Ejemplo n.º 1
0
 private void data_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         AddToSellDialog.id    = data.Rows[e.RowIndex].Cells[0].Value.ToString();
         AddToSellDialog.name  = data.Rows[e.RowIndex].Cells[1].Value.ToString();
         AddToSellDialog.price = data.Rows[e.RowIndex].Cells[4].Value.ToString();
         AddToSellDialog sd = new AddToSellDialog();
         sd.ShowDialog();
     }
     catch (NullReferenceException ne) { }
 }
Ejemplo n.º 2
0
 private void data_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         AddToSellDialog.id = data.Rows[e.RowIndex].Cells[0].Value.ToString();
         AddToSellDialog.name = data.Rows[e.RowIndex].Cells[1].Value.ToString();
         AddToSellDialog.price = data.Rows[e.RowIndex].Cells[4].Value.ToString();
         AddToSellDialog sd = new AddToSellDialog();
         sd.ShowDialog();
     }
     catch (NullReferenceException ne) { }
 }