ComponentOne True DBGrid Pro 8
ErrorText Property (TDBDropDown)

This property returns the error message string from the underlying data source.

Syntax

object.ErrorText

Remarks

Read-only at run time. Not available at design time.

When a database error occurs as a result of user interaction with the grid, such as when the user enters text into a numeric field and then attempts to update the current record by moving to another row, the grid's Error event will fire. However, the error code passed to the event handler in the DataError parameter may not identify the specific error that occurred. For these reasons, the ErrorText property is provided so that your application can parse the actual error message to determine the nature of the error.

Note

The ErrorText property is only valid within a TDBGrid or TDBDropDown control's Error event handler. A trappable error will occur if you attempt to access it in any other context.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback