DataGridView控件的DataGridViewImageCell图片列,改变图片的值,(删掉了一行注释的代码)
lstProperty.DataSource = BusinessLayer.ReadAllProperty(strFilter);
for (int i = 0; i < lstProperty.Rows.Count; i++)
{
string strImagePath = ConfigurationSettings.AppSettings["ImagePath"].ToString();
lstProperty.Rows[i].Cells["Column3"].Value = Image.FromFile(strImagePath + "2ac8f97b-210a-4dfa-a5b3-0c9f4ab574a9.png");
}
浙公网安备 33010602011771号