Validating gridview

validating gridview-44

When this event is canceled in virtual mode, the Cell Value Pushed event will not be raised.

Handle the Cell Validated event to perform post-validation processing.

Now for the next exam Eye Exam the only result they want to have is Yes/No and when completed and its No than they did not have it completed yet.

Because the Medical Test column get generated dynamically I dont know how to place validators? in your DB, you add another column that states whether the Result can be 2-7, or True/False so (1) being values 2-7 (2) being true/false Table Tests Column Test ID Test Name Result Code 1 Hemoglobin 1 2 Eye Exam 2 3 LDL Choles 1 4 Triglycerides 1 so now you have your gridview now on your code behind, grab the Result Code for each row (if you're validating multiple textboxes), and determine if the value is (1 - range) or (2 - true/false) - if the value in the textbox doesn't match up to whatever the Result Code requires, then you know that it isn't correct.

To validate data to grid cells and rows, we need to use the Validate Cell event, which will be raised by the Kettic Data Grid View when there are any changes to the current cell or when the grid cell loses input focus like.