| I am new to c#. I have the following in my project in windows forms: Form1 with button and DataGridView. Form2 with button. Form3 with button and 3 textBoxes. In form1, I click buttonOpenForm2 form2 pops up. Then in form2 I click buttonOpenForm3 form3 pops up which has 3 text boxes and button. Now the 3 forms are open. now in form3, I enter values in textBox1, textBox2 and textBox3 and when click buttonAddRow ( from form3) I want these values to be inserted into the DataGRidView in Form1. My question is: How can I add a row into DataGridView in Form1 ( parent) from form3 (child of child form) WITHOUT closing form2 and form3? I mean I want to pass the data while form2 and form3 are still open. Please help me. Thank you Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code Code |
Loading
Raja TRank #685 · 3.5K reputationPosted Nov 26, 2015, 7:01 PM EST
private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("Name"); dt.Columns.Add("Address"); dt.Columns.Add("Age");naouf gyd15 reputationPosted Nov 27, 2015, 9:45 AM EST
naouf gyd15 reputationPosted Nov 27, 2015, 9:45 AM EST
naouf gyd15 reputationPosted Nov 27, 2015, 9:45 AM EST
naouf gyd15 reputationPosted Nov 27, 2015, 9:45 AM EST
Siva SankarRank #9,790 · 202 reputationPosted Nov 27, 2015, 7:09 PM EST
Raja TRank #685 · 3.5K reputationPosted Nov 29, 2015, 5:58 PM EST
Siva SankarRank #9,790 · 202 reputationPosted Nov 29, 2015, 6:33 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts