I have an Order Entry form with an Order Entry Header table and an Order Details table. The user adds a new header record by filling in some textboxes and hitting "Save", creating the Order Header record and returning an Order ID. This is the related key to the Order Details table. Since there is no data in the Order Details table at this time, I could not get a FormView or GridView to populate. Messing around with the EmptyDataTemplate for both didn't work out at all (ex. The FormView would show the fields, but when I hit "Edit", it did nothing.) So I decided to do things "manually"; create a blank record in a dataset and use it as the Datasource for the Formview. This worked OK. I could even edit the record. Now, when I hit "Update" to commit my changes, I want to be able to pull the data from the FormView dataset and commit them to the SQL database. Sounds cludgy, but it was very frustrating. So that's the long answer to your short question, unless you have a better idea......................
Main Topics
Browse All Topics





by: WanaBRichPosted on 2008-10-23 at 06:29:34ID: 22785814
What do you want to do? for instance do you want to change a 1 or 0 in the DB to desplay "yes" or "no"