如标题

解决方案 »

  1.   

    CellPainting事件里做试试
     然后把图片放到Resources.resx
      

  2.   

    csdn的高手们出来吧,分不够可以再加啊
      

  3.   

    CellPainting:((DataGridViewImageCell)this.dataGridView1.Rows[e.RowIndex].Cells["图片列"]).Value = "路经"
      

  4.   

    今天看这个帖子对我帮助很大,不过希望以后看帖子的朋友不走弯路,我给大家一个最好的解决办法。dataGridView1_DataBindingComplete    for (int i = 0; i < dataGridView1.Rows.Count; i++)
                            {
                                if (dataGridView1.Rows[i].Cells["islock"].Value.ToString() == "" || dataGridView1.Rows[i].Cells["islock"].Value.ToString() == "0")
                                {
                                    ((DataGridViewImageCell)this.dataGridView1.Rows[i].Cells["Column1"]).Value = imageList1.Images[13];
                                }
                                else 
                                {
                                    ((DataGridViewImageCell)this.dataGridView1.Rows[i].Cells["Column1"]).Value = imageList1.Images[14];
                                }                        }