DataGridViewImage到xml文件 [英] DataGridViewImage to xml file

查看:69
本文介绍了DataGridViewImage到xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你的帮助,



我有一个包含3列,文本,图像,图像的数据网格视图。 2个图像列都包含资源嵌入图标。有关如何将此datagridview写入/读取到xml或mdb的任何示例?赞赏。

谢谢

解决方案

将二进制数据写入XML的唯一方法是在CDATA部分,这就是你需要的做。我不确定这有多大用处。 MDB完全不同,Access允许写入二进制数据。也许如果你告诉我们你要做什么以及为什么,我们可以提供更多帮助。


好吧,我正在研究的小项目是员工签名板(IN&OUT板) )。我能够使用datagridview创建一个界面,其中包括2个文本列和2个图像列以及一些资源嵌入图标。我必须将此信息保存到文件中以防计算机关闭。但我不确定如何做到这一点。谢谢


试试这个: www.codeproject.com/Articles/28273 / Xml-Database-Demo [ ^

I need your help on this,

I have a datagridview with 3 columns, text, image,image. the 2 image columns both contain resource embedded icons. any example on how to write/read this datagridview to an xml or mdb ? appreciated.
Thanks

解决方案

The only way to write binary data to XML is in CDATA sections, so that's what you'll need to do. I am not sure how useful that is. An MDB is something else entirely, Access allows for binary data to be written. Perhaps if you told us what you're trying to do and why, we could help more.


well, my little project I'm working on is a signing board for employees (IN&OUT board). I was able to create an interface using datagridview that include 2 text columns and 2 image columns with some resource embedded icons. I have to save this info into a file just in case the computer turned off. but I'm not sure how exactley to do that. Thanks


Try this :www.codeproject.com/Articles/28273/Xml-Database-Demo[^]


这篇关于DataGridViewImage到xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆