Ttable is a derived class of Tdataset, which is a data set component based on the BDE database engine and a simpler data component that can fetch data from the database directly from the databases by setting the database properties of the connection and the name of the data table to be fetched ( Tablename), it is a fast way to use ttable for simple applications.
When the user uses the Ttable component directly, the component uses the default field settings. To change the field settings for the Ttable component, you can do so through the field editor. After you double-click the Ttable component on the form, enter the field editor to edit the fields separately.
Ttable Common Properties
Alignment: The Alignment of field data display
DisplayFormat: Sets the representation of the data within the field, if the numeric type of the data needs to add thousands of delimiters, the property value is #,###
Displaylabel: Sets the title name of the field, which defaults to the field name, and when a specific field name is set, all components that use the dataset will also take the newly created field name directly
Editmask: When entering edit mode, set the edit screen of the field, that is, you can restrict the data format or data content entered by the user.
FieldName: Sets the field to which the field and data table are connected, that is, which field in the data table the field gets the data from
ReadOnly: Sets the read-only or not for each field individually
Visible: Sets the display of the field or not, the field set to False will not appear on the display of the TDBGrid component if a control component such as TDBGrid is connected.
Field Editor Features
Quick drag of the field editor
Delphi ttable Components