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");
}

posted on 2010-12-01 14:44  冰危节奏  阅读(3702)  评论(1)    收藏  举报

导航