This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to work out how I can push an exception to the Cell after the Cell has been edited.
Essentially, the Validation checks that a Product Code has been entered in the correct format (using gvMain_CellValidating) and upon CellEditEnded, uses the data within the cell to load the Product.
If the Product Code is not within the database however, I would like to throw an exception at this point which will then work like a validation exception.
The code uses custom classes, hooked into WCF and Rx so there's a few steps before we can ascertain whether the product code is correct but upon loading, the result will either be true or false.
If false, I would like the user to receive the Cell Validation message. I can do a Message Box easily but this isn't with the design of the product.
Please could you point me in the right direction.
Many thanks
I'm trying to work out how I can push an exception to the Cell after the Cell has been edited.
Essentially, the Validation checks that a Product Code has been entered in the correct format (using gvMain_CellValidating) and upon CellEditEnded, uses the data within the cell to load the Product.
If the Product Code is not within the database however, I would like to throw an exception at this point which will then work like a validation exception.
The code uses custom classes, hooked into WCF and Rx so there's a few steps before we can ascertain whether the product code is correct but upon loading, the result will either be true or false.
If false, I would like the user to receive the Cell Validation message. I can do a Message Box easily but this isn't with the design of the product.
Please could you point me in the right direction.
Many thanks