读取固定长度的文件并在datagridview中显示 [英] read a fixed length file and display in datagridview

查看:48
本文介绍了读取固定长度的文件并在datagridview中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取固定长度文件(.txt),其长度在xml文件中指定,并在datagridview中显示该文件。 PLZ帮助..

解决方案

你可以从txt文件中读取fror bellow链接。



http:/ /msdn.microsoft.com/en-us/library/vstudio/ezwyzy7b.aspx



然后从这些数据创建数据集并将数据集绑定到datagridview

how to read a fixed length file(.txt) whose length of columns is specified in xml file and display that file in datagridview. plz help..

解决方案

Fror bellow link you can read from txt file.

http://msdn.microsoft.com/en-us/library/vstudio/ezwyzy7b.aspx

Then create a data set from those data & bind Dataset to datagridview


这篇关于读取固定长度的文件并在datagridview中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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