Mainforms and custom controls

Jun 17 2009 12:03 PM

Hi,
I'm looking for some help with displaying custom controls on my main form.
My application has several custom controls which are created dynamically.  My main form has a horizantal split container, which I want populated with my custom user controls.
My problem arises when i try to create a seperate custom control from within another custom control and then have this displayed on the horizantal split container on the main form.  The first user control has a datagridview which will be populated with data from the DB.  I then want to be able to select a specific cell in the datagridview and dependant on which one is selected a call will be made to the DB to retrieve the data associated with the cell value (eg. customers name, address details etc).  All works fine up to here.  But at this point I want to create a new custom control and have this added to a different panel in the horizantal split container, showing the customers details.
Any help would be greatly appreciated.
Cheers
AG