Using VS2008, Infra Win Form 9.1 with all hotfixes.
Did the rowedit template example in the local documnetation following the directions.
Created the datasource and created the rowedit template per the directions. Used the fefaults given in the local documentation
the template opens up fine, can edit a text box and click the OK button. The grid shows the changes, but when I stop (exit out of) the app and go back in, the changes are not there. I tried this in VS2005 as well -- same result.
this should work with the grid datasource setup exactly as the local help file for binding to a flat file
Oh, I am running Vista so I suspect something there maybe the real issue
Any ideas?
The RowEditTemplate and the WinGrid so not update the back end data source. They only work with the local DataSource. So if you are binding your grid to a DataTable, for example, the grid only updates the local DataTable. The interaction between the DataTable and the back end (the database) is something you need to handle in your code - the grid cannot have any effect there.
Typically, if you are using a DataTable, you would use the DataAdapter class to push the updates to the back end. I'm sure Microsoft's documentation discusses the matter in much greater detail.
Thanks Mike.
I misunderstood the purpose of the row edit template. Seems like a lot of work for what it does....I did go
back and redo the 8.2 sample and it does not update the backend as I had thought. I use a business object
to bind with in any case
Makes more sense now..... again thanks