True DataControl 8.0 Reference > Field Object > Field Object Properties > DataSourceRequired Property |
Returns whether a data field is mandatory (can't be left empty) in the underlying database.
Field.DataSourceRequired
Read-only at run time. Not available at design time. Type: Boolean. Property applies to Field object.
For a data field in data source mode (DataMode = 0 – DataSource), this property returns True if the corresponding field is required (cannot be set to Null in a modified or new record) in the underlying data source (database).
The DataSourceRequired property returns False in all other cases.
For more information, see True DataControl Fields.