ValidateFieldHandlers

Protected ReadOnly Property ValidateFieldHandlers As Blackbaud.AppFx.BatchUI.BatchEntryHandler.FieldEventHandlerCollection(Of Blackbaud.AppFx.BatchUI.BatchValidateFieldArgs)

ValidateFieldHandlers has an Add procedure to add a ValidateFieldHandler for a particular field within the batch grid user interface. When the assigned field changes, the AddressOf operator designates a delegate to handle the event. The AddressOf operator creates a function delegate that points to a function specified by the procedure name.

In the example below, a ValidateFieldHandler is added to the TRANSACTIONDATE field. When the event fires, a function delegate named ValidateDate is called to examine the date and add an annotation (message) to the field, if needed. The annotation warns the end user if the date value is in the future.