Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
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..
Posted
Updated 11-Jul-12 18:04pm
v2
Comments
[no name] 11-Jul-12 21:41pm    
Okay.... I suppose that there is probably a question coming at some point in time....
DamithSL 11-Jul-12 22:57pm    
this is like status update of what you doing currently. So what is the Question?
Sergey Alexandrovich Kryukov 11-Jul-12 23:33pm    
It rather looks like OP is asking you a for your approval of this course of action...
What to you think about the OP's suggestion? :-)
--SA
DamithSL 11-Jul-12 23:41pm    
There is no suggestion, OP done something and now trying to do something.
Esmond90 12-Jul-12 0:05am    
sorry,just updated the question.=)

1 solution

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Jul-12 23:35pm    
Well, yes, it should give the idea, my 5.
--SA
Abhinav S 11-Jul-12 23:36pm    
Thank you SA.
Esmond90 12-Jul-12 0:08am    
Thanks. I am trying on it.=)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900