private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { DataGridViewLinkCell cell = (DataGridViewLinkCell)dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex]; if (cell.Value.ToString() == "Despachar") // Si se selecciona el hipervinculo "confirmar" { _LogicLayer.Despacho(new DataAlmacen { IdNMB = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(), IdProducto = int.Parse((dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString())), Fecha = (DateTime)dataGridView1.Rows[e.RowIndex].Cells[4].Value, Cantidad = int.Parse((dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString())), }); PopulateContacts(); } }