Hi,
I am using the FormTemplate mode in EditForm settings.
When the user fills information in new item and clicks on 'Save' it fires the perfomInsert command.
I am validating data in ItemCommand method in code behind.
When the validation is successful I am rebinding the grid. Otherwise I need to display error message to user and user should still see the InsertItem. But as soon as the execution of code in 'PerformInsertCommand' completes, the new InsertItem is hidden.
How do I get around this?
Brindavan
I am using the FormTemplate mode in EditForm settings.
When the user fills information in new item and clicks on 'Save' it fires the perfomInsert command.
I am validating data in ItemCommand method in code behind.
When the validation is successful I am rebinding the grid. Otherwise I need to display error message to user and user should still see the InsertItem. But as soon as the execution of code in 'PerformInsertCommand' completes, the new InsertItem is hidden.
How do I get around this?
Brindavan