在表格上显示数据 [英] Display data on table

查看:89
本文介绍了在表格上显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..我正在尝试在从.txt文件中读取数据的表单上绘制表格..我已经将数据以数组的形式存储在一个类中.我现在想要做的是显示

Hi..I am trying to draw a table on a form which data is read from .txt file..i had store the data in the form of array in a class.What I am trying to do now is to display the data in a table..the data are several reading of voltage to get the average..the question is how to get the array of data from class and display it on the table?thanks in advance..

推荐答案

将文本数据加载到字符串列表中.
将列表分配给DataGridViewdatasource .

看看绑定字符串列表 [
Load the text data into a string list.
Assign the liste to the datasource of a DataGridView.

Have a look at Binding List Of String[^].
It should give you an idea on what to do.


这篇关于在表格上显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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