C#, How to put the array data in DataGridView?

I am getting values ¿¿from the serial port, and putting in variables.
How to put these data into arrays?
How to Put the array value in datagridview automatically once the array receiving the data?
ocaccyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jini JoseSenior .Net DeveloperCommented:
is the getting values from the serial port is seperated by anything ?
just like a,b,c etc.

if so you can do like below

string b="a,b,c";
char split=Convert.ToChar(",");
string[] a = b.Split(split);
0
ocaccyAuthor Commented:
We get a string like this:
01,00000,00000,00000, laser error, error cell
separated by commas.
But I have 6 devices.
In my project i try this:
int myIndex[240]
time myTime [240]
string myID01[240]
string myID02[240
string myID03[240]
string myID04[240

And how to deposit these values ¿¿in variables?
And how to show the values ¿¿of arrays in datagridview?

e como
string myID05[240]
string myID06[240]
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ocaccyAuthor Commented:
Hi, gmailjini.

The contents of the link, in part answers my question.

The application you're developing, has eight arrays.

double MyIndex[240]
date myDate[240]
string myID01[240,6]
string myID02[240,6]
string myID03[240,6]
string myID04[240,6]
string myID05[240,6]
string myID06[240,6]

In the first part, we will collect data from the serial port and put in these 8 arrays.
Once it receives data, I need showing their values automatically on a dataGridView for each of these arrays.
dataGridView_Index, dataGridView_Date, dataGridView_ID01, dataGridView_ID02, dataGridView_ID03, dataGridView_ID04, dataGridView_ID05, dataGridView_ID06.

After finishing the first part, we will have a button that performs all parts of the second part until the fifth part.

In the second part, we will do equations with these 8 arrays, and put the results in double myGen1[240,18], and show double myGen1[240,18] in dataGridView_myGen1.
In the third part, we will take the maximum and minimum of double myGen1[240,18], the results put in myGen2[240,18], and show double myGen2[240,18] in dataGridView_myGen2.
In the fourth part, we will equations of selections of double myGen2[240,18], the results put in myGen3[240,18], and show double myGen3[240,18] in dataGridView_myGen3.
In the fifth part, we will make equations of selections of double myGen3[240,18], the results put in double myLast[8,18], and show double myLast[8,18] in dataGridView_myLast.

Best Regards,
ocaccy
0
ocaccyAuthor Commented:
Thank you.
My system is running now.
ocaccy
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.