Gridview Problems
Please move this if it is in the wrong forum - Chris
In using what I've learned in your book I have created a simple form and created a dataset and dragged and dropped the resulting data store on the form. It produces the controls and the boxes. I did it as detail.
The first problem is that it won't delete the records I've entered unless I also click the save button. Any direction on this. If I have to do this, can I integrate that into the delete button with code? What would the code be?
The second problem is when I add a Gridview from the same data set to this form that is a child dataset, when there are no records in the in the partent table, and I add a new record to the parent the child doesn't have a valid index to use to reference to it. I haven't been able to figure out how to set up the code in the save portion to save the first set and then the second.
Any help would be appreciated.
Chris
|