Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Questions concerning Creating a Master/Detail Form Using Two Windows Forms DataGridView Controls

$
0
0

Hello,

I'm using this walkthrough to learn what I can about the DataGridView control:

Walkthrough

I created a c# Windows Form program and it works real well. I just have some questions.

I'm not sure of why this line is in the code:

this.Load += new System.EventHandler(Form1_Load);

If I leave this in, my program seems to go through the Form_Load event twice.  If I take that line out, the Form_Load only executes once and the program seems to work fine.  Isn't the form supposed to load even if that line is not in the program?  I don't understand the purpose of it.  Am I supposed to leave it in?

Also, the walkthrough does not have an "InitializeComponent();" in it.  Mine does.  Should I put the code in from the walkthrough before the  "InitializeComponent();" or after?

Any help would be gratefully appreciated.

Thanks,
Tony


Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>