OK.
I'm using a gridView with cell/row editing enabled to keep a bound business object updated when elements in the grid are changed. That part is working great. I'm also using validation on the grid contents. I allow the user to update the grid however they so chose, then click a 'save' button, at which point that changes are comitted to our db.
The issue is that the validation only fires for a cell when you click another cell/row in the grid, hit tab, or hit enter. So, if the user inputs invalid data, does not perform any of the actions listed in the last sentence, then clicks my save button, data is allowed to be stored improperly since the CellEditEnded event does not fire, which is what causes validation to be initiated, when they hit my button. SO, I'm looking for a way to either manually fire that event, OR another way to accomplish my goal of validating the data on button click.
I hope that makes sense. Any input would be appreciated.
Thanks,
Marty
I'm using a gridView with cell/row editing enabled to keep a bound business object updated when elements in the grid are changed. That part is working great. I'm also using validation on the grid contents. I allow the user to update the grid however they so chose, then click a 'save' button, at which point that changes are comitted to our db.
The issue is that the validation only fires for a cell when you click another cell/row in the grid, hit tab, or hit enter. So, if the user inputs invalid data, does not perform any of the actions listed in the last sentence, then clicks my save button, data is allowed to be stored improperly since the CellEditEnded event does not fire, which is what causes validation to be initiated, when they hit my button. SO, I'm looking for a way to either manually fire that event, OR another way to accomplish my goal of validating the data on button click.
I hope that makes sense. Any input would be appreciated.
Thanks,
Marty