Hi, we have a .net user control that works very well as an edit form within the grid, with one exception. We have an Insert button, an Update button and finally a Cancel button, with CommandNames set to Insert, Update, and Cancel respectively. Depending on whether a primary key value exists from the database, we either hide the insert button or show it.
If we are updating, the form performs as expected and the edit form disappears and the grid updates with the new values.
But inserts fail to make the edit form disappear. If we click cancel, the edit form disappears and we see the newly inserted value in the grid.
We were under the assumption that setting the Command Name to Insert would be what we need, but apparently this is not the case. Does anyone have any ideas on either, a) what we are doing wrong or b) a way to force the edit form to close... from within the edit form control as that is where the post back and processing takes place. Many thanks.
If we are updating, the form performs as expected and the edit form disappears and the grid updates with the new values.
But inserts fail to make the edit form disappear. If we click cancel, the edit form disappears and we see the newly inserted value in the grid.
We were under the assumption that setting the Command Name to Insert would be what we need, but apparently this is not the case. Does anyone have any ideas on either, a) what we are doing wrong or b) a way to force the edit form to close... from within the edit form control as that is where the post back and processing takes place. Many thanks.