Hello,
We have a GridView bound to a BindingLIst of custom business objects. The customer has very strict data validation requirements and doesn't want a new row to be added to the data source until the data is clean, so we have implemented RowValidating and perform validations there for both the 'new' row and existing rows. This works well.
The problem is that if a user decides against adding the row, they can't simply click out of the row, they would either have to finish the row entry and then delete the row, or close out of the form and then return to it. These are not elegant solutions. We wish to provide a Cancel button that will simply discard all changes made to the row, be it a 'new' row or an existing row. How can we accomplish this?
Thanks
We have a GridView bound to a BindingLIst of custom business objects. The customer has very strict data validation requirements and doesn't want a new row to be added to the data source until the data is clean, so we have implemented RowValidating and perform validations there for both the 'new' row and existing rows. This works well.
The problem is that if a user decides against adding the row, they can't simply click out of the row, they would either have to finish the row entry and then delete the row, or close out of the form and then return to it. These are not elegant solutions. We wish to provide a Cancel button that will simply discard all changes made to the row, be it a 'new' row or an existing row. How can we accomplish this?
Thanks