Lastly, a best practice section concludes the main part of this document.
Most sections contain a Q & A section that answers common questions regarding the specific feature or area covered by the section.
provides a convenient way to realize data validation before it is committed to the underlying data source.
SOLUTION To achieve data validation prior the row is committed, you can handle the Cell Validating event, which is raised by the control when the current cell changes or when it goes out of edit mode.
Note that some questions are duplicated in multiple sections based upon the section relevancy.
The question and answers with code samples/snippets are contained in this documents only appendix to make for a one-stop shop of code.
Cell Validating gives you the power to stop the commit process on a cell level obeying some internal rules of your application. To String()) If new Value And here is how the error message is displayed: The Cell Validated event occurs when the cell has validated the new content.