Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Open a new form with related record (in same table)
 

Open a new form with related record (in same table)

Hi All

I currently have a customer tracking application I am trying to produce. I have one form with the main details which are held on the customer table eg name, address etc.

There is also a comments field, but as the main form is quite busy i would like to open up a new form with the same record but just showing the comments field.

I have been able to pass the ID and customer name through to the new form on the labels, I was wondering - could anyone advise how i could possible filter the table to display the correct comment for the correct customer.

Or, if anyone could advise of a better way to do it?

Thanks

Dan

ncrstinks  Saturday, November 17, 2007 9:46 AM
That's what I'm just doing right now:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2422939&SiteID=1

set BindingSource.Position to the same position than the first form.

vbnotes  Saturday, November 17, 2007 6:32 PM
That's what I'm just doing right now:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2422939&SiteID=1

set BindingSource.Position to the same position than the first form.

vbnotes  Saturday, November 17, 2007 6:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Data from one form to another
• Cannot bind to the property or Column 'xyz' on the DataSource.Parametername:dataMember
• DataGridViewComboBoxCell - Drop Down Issue...
• Reading Excel sheet
• Newer code sample for sorting bound data in columns?
• Image adding to MSSQL
• Data Source Configuration Wizard can't find my class
• TextBox DataBinding
• Problem Updating Dataset through Bindingsource
• Switching text direction (RightToLeft) in DataGridViewTextBoxCell