Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Trigger AddRow, UpdateCell and DeleteRow again after first postback
posted

Hi,

 I am writing a web page for managers to assign staff to handle particular factories. All the add, update and delete are done in the web grid. There is also a Save button. It will save the data to database using DataAdapter.

All the checkings and update dataset actions are done in AddRowBatch, UpdateCellBatch and DeleteRowBatch events.

Now the problem is, when I first click the Save button, if there is any error (e.g. staff is not in the same country as the factory), I will pop up a warning message and stop updating the database. However, if user don't make any change and click save again, the events mentioned above do not fire and all the validation processes are skipped.

 I have 2 questions,

1. Is there any way to trigger those events, so that I can validate the data again?

2. Or am I using the wrong function to do validation?

I'm using .Net 1.1, infragistics version 6.2.20062.34, the webgrid not using load-on-demand.