Adding and Changing Record in DataGrid - TechRepublic
General discussion
July 19, 2000 at 04:02 PM
sylviaseow

Adding and Changing Record in DataGrid

by sylviaseow . Updated 25 years, 7 months ago

I desperately need help from all of you. My problem is DataGrid related.

The situation is as follow: I have three command button in the form that is the Add, Change and Cancel…

1. How can I restrict the user to only add new record, when theyclick the Add button. (I was using AddNew Method). How to make the existing record to be read only and while the new record can be added…

2. I truly understand that when the user enter the data into the datagrid, all the data will be directly updated to the database. How would I reverse or clear off the new record added when the user click the Cancel button. Is there any function to undo the updated data to clear the newly added/ edited records into the database

These two problems really drive me mad. I wish that I could get help from the expert (I mean all of you). Your help and kindness will be mostly appreciated…

This discussion is locked

All Comments