从串行端口设备接收的数据中填充数据网格 [英] populating a data grid from data recevied by a serial port device

查看:61
本文介绍了从串行端口设备接收的数据中填充数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在这里有问题.....我有一个在串行端口上连接的设备.我想将通过此设备接收到的数据填充到网格中,然后将该数据导出为Excel文件.......我想在这里提到的一件事是我不想使用数据库.有什么办法可以做到这一点?实际上,此设备每10秒发送一次数据会发生什么情况,现在我必须在网格视图中显示此数据,并且在收集完所有数据后,我必须将其导出为Excel文件.

我该怎么办?

任何帮助或指导将不胜感激.

多亏了所有这些.

Hi,

I have a problem here .... I have a device which is connected on serial port. I want to populate the data received bu this device in to a grid and the export that data as an Excel file ....... One thing i want mention here that I don''t want to use database. Is there any way for achiving this? Actually what happens this device sends data after every 10 seconds and now I have to display this data in grid view and when all the data has been collected I have to export it as a Excel file.

How can i do this?

Any help or guideline will be highly appreciated.

Thanks to all in advance.

推荐答案

如果对网格进行数据绑定,则无法向其中添加项目.我怀疑您只是想将项目添加到网格的Items集合中,以便在数据输入时添加tehm.您也必须自己在代码中设置所选行.
If you databind a grid, you can''t add items to it. I suspect you want to just add your items to the Items collection of the grid, so you can add tehm as the data comes in. You have to set the selected row yourself in code, too.


这篇关于从串行端口设备接收的数据中填充数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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