Procedure TFRIA0030dm.odsBatchSroiIndemnitiesPAY_ADJ_DAYS_PAIDValidate(į('PAY_ADJ_DAYS_PAID').Value := '' į := odsBatchSroiIndemnities.FieldByName('PAY_ADJ_DAYS_PAID') How can we get the dbGrid cell to behave the way we need it to? If we do not set the value in the dataset, the validate event keeps firing in a loop because the value is still greater than 7 and does not give the user a chance to set the value less than 8. Here is the code that gets a EVariantInvalidArgErr exception on the line of code that is bold. We would like to validate date fields as well that are in cells in the dbGrid. The user's specfic requirement is if days worked is greater than 7, force the user back to that cell to re-enter the correct value. In this case we are trying to validate days worked. We have a requirement to edit columns in the native Delphi 7 dbGrid component.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |