Code: Select all
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
DataGridViewRow currentRow = new DataGridViewRow();
currentRow = dataGridView1.CurrentRow;
string valueJob = currentRow.Cells[2].Value.ToString();
string valueBatch = currentRow.Cells[3].Value.ToString();
string valueImmagine = currentRow.Cells[4].Value.ToString();
string result = Octopus2.Properties.Settings.Default.DataPath + "\\" + valueJob + "\\" + valueBatch + "\\" + valueImmagine + ".jpg";
pictbox.ImageLocation = result;
}
Vielen Dank im Voraus, wir freuen uns über jede Hilfe.