当前位置:编程学习 > C#/ASP.NET >>

关于Dev中 GridContrl 的 layoutview 问题 在线等、、、谢谢

--------------------编程问答-------------------- 除 --------------------编程问答-------------------- qq78925271  我也在弄这个呢 一起学习吧 --------------------编程问答--------------------  repositoryItemPictureEdit控件只能用System.Byte[]来显示图片。 把你的图片转成byte[]格式赋值给repositoryItemPictureEdit就可以了
  private byte[] getImageByte(string imagePath)
        {
            if (!File.Exists(imagePath))
            {
                return null;
            }
            FileStream files = new FileStream(imagePath, FileMode.Open);
            byte[] imgByte = new byte[files.Length];
            files.Read(imgByte, 0, imgByte.Length);
            files.Close();
            return imgByte;
        }
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,