J'ai un champ DataGridViewImageColumn
, et pour chaque ligne du champ, en fonction d'une condition, j'ajoute une image différente. Quelqu'un sait comment je peux le faire dans Windows Forms?Comment ajouter une image dans mon DataGridViewImageColumn?
if (dgvAndon.Rows[e.RowIndex].Cells["urgencyOrder"].ToString() == "1")
{
//Here I want to add the image in the image property field DataGridViewImageColumn.
}
Oo, merci! Travaillé .. – user1792343