This may be a basic question, but I am hoping someone can assist me. I have a winform (2.0) which I add two user controls to during runtime. One user control contains a DataGridView control. The other user control contains a tab control containing various controls. I would like to handle the CellContentClick event of the DataGridView to alter the data in the tab control. This would be a master-detail type situation, but I am unsure how to handle using two user controls on one winform. BTW - I am coding in C#.
Thanks

User Control Event Handling
Andrew Forman
If you'd like to expose the entire DataGridView control, I would simply make a property in the UserControl that returns the DataGridView. You can then simply respond to the DataGridView's events manually.
You could also explicitly expose the CellContentClick event in your usercontrol, and manually raise a new event. In this way you can hide more of the implementation, but you are also limited to the events that you explicitly expose to the user.