在gridview列中显示图片

时间:2015-02-27 20:25:22

标签: c# image gridview

我有一个有界的griview1,我添加了一个Column作为repositoryItemImageEdit1

我试图用路径字符串显示图片

      DevExpress.XtraGrid.Views.Card.CardView view = sender as DevExpress.XtraGrid.Views.Card.CardView;


 Image img= Image.FromFile("\\path");  view.SetRowCellValue(rowindex, view.Columns["photo"], img);

0 个答案:

没有答案