Question? after letting VS 2005 generate summary and edit view for

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have clicked the generate data entry forms in the datagrid in vs2005 for CF
app. I have two forms created for me. One Summary and one Edit view form. My
question is when using the edit view form if I edit the data in that form
when I am reterned to the form with the original dartagrid on it the edited
data is intact. When the fill() of the grid is refreshed the edited data is
removed. Why is the data not sent back to the dataset?
The help on this just says this:
3.On the main menu, click Edit to open the Edit dialog box.(edit form)
Use the Edit dialog box, which displays all columns, to modify the data, and
then click OK.The revised data is displayed in the datagrid. (How do I
revise it in the dataset?)


Thanks Jon Stroh
 
Jon said:
I have clicked the generate data entry forms in the datagrid in vs2005 for CF
app. I have two forms created for me. One Summary and one Edit view form. My
question is when using the edit view form if I edit the data in that form
when I am reterned to the form with the original dartagrid on it the edited
data is intact. When the fill() of the grid is refreshed the edited data is
removed. Why is the data not sent back to the dataset?

The code generated by 'Generate Data Forms' does *not* save changes
back to the datasource automatically. You need to write that code
yourself either in the EditForm or in the code calling the EditForm. I
need to write a long blog post someday on the obscure reasons due to
which we couldn't generate the code to save changes.
 
Back
Top