I have two individual datagidview with data, DGV1 and DGV2. Now I want to make a 3rd datagrid DGV3, copy over the columns "LIST", "Theta" and "Phi", but for my last column in DGV3 ("Ampl (dB)"), I have to add the values in DGV1 and DGV2 and make it as a input to DGV Total. Assuming i there is two full datagridview, how can I handle my problem? Any help is strongly apricheded. the data comes from two individual Arduinos. The population of DGV1 and DGV2 happens in two EventHanldlers.
delegate void dataToGrid3(int deg, int de2, double ampl_Total, int seq);
private void adddataToGrid3(int deg, int deg2, double ampl_Total, int seq)
{
int row = 0;
dataGridView3.Rows.Add();
row = dataGridView3.Rows.Count - 2;
dataGridView3["LIST3", row].Value = seq;
dataGridView3["Theta3", row].Value = deg;
dataGridView3["Phi3", row].Value = deg2;
dataGridView3["Ampl_dB3", row].Value = ampl_Total;
}
Trying to do use button to populate DGV Total:
private void DGV_Total_Btn_Click(object sender, EventArgs e)
{
for (int i = 0; i < runCounter; i++)
{
}
}