Hi,
I have a VB.Net application. In it i have a Contacts form that has a Contacts grid that is bound to a DataSet on the same form. What i am trying to do is display a 'New Contact Wizard' when the user clicks the 'New Contact' menu item. The wizard is a separate form that will allow the user to add all of the new contact info. When the user clicks OK i want the wizard to return a new contact datarow to the Contacts table on the Contacts form. I am doing this by using a property in the wizard called Contact. This property returns a Contact data row with the new info. If the user clicks OK in the wizard then the Contact should be added to the Contacts datatable. The problem that i am having is that however i code the wizard to create the new contact datarow, i always get an error that the row already belongs to another table.
I need the wizard, so i need to either have the wizard create the new contact row from scratch or i could also pass the new row to the wizard from the Contacts form. I would then need to add databinding to my wizard's editors.
Could someone please shed some let on this? How would you guys do it - using a wizard please?
Thanks,
Joel
I have a VB.Net application. In it i have a Contacts form that has a Contacts grid that is bound to a DataSet on the same form. What i am trying to do is display a 'New Contact Wizard' when the user clicks the 'New Contact' menu item. The wizard is a separate form that will allow the user to add all of the new contact info. When the user clicks OK i want the wizard to return a new contact datarow to the Contacts table on the Contacts form. I am doing this by using a property in the wizard called Contact. This property returns a Contact data row with the new info. If the user clicks OK in the wizard then the Contact should be added to the Contacts datatable. The problem that i am having is that however i code the wizard to create the new contact datarow, i always get an error that the row already belongs to another table.
I need the wizard, so i need to either have the wizard create the new contact row from scratch or i could also pass the new row to the wizard from the Contacts form. I would then need to add databinding to my wizard's editors.
Could someone please shed some let on this? How would you guys do it - using a wizard please?
Thanks,
Joel