Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am currently working on a windows form that has master and detail sections on it. I have about 12 textboxes and comboxes bound to a dataset for the master section and navigation buttons to go back and forth through the dataset. I also have a datagrid control for the detail section which is related to the master section. I have managed to populate master and detail section's records on the form using data adapter and dataset and I have also got the update part sorted out.
The only problem I have is adding a new record to a master section.
I have used "BindingContext(dataset, "table").AddNew()" method and also tried to add datarow and add a new row to dataset, but no luck so far.
Could any one give some clue how to add a new record in this situatin.
Any comments and helps would be appreiciated. Thanks.
0 · ·