Skip to main content
Table of Contents

TTMSFNCDataGridDatabaseAdapterColumns.HasFieldsDefined Method

Checks whether the collection contains explicitly defined field mappings.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCDataGridDatabaseAdapterColumns

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
function HasFieldsDefined: boolean;
bool __fastcall HasFieldsDefined();

Remarks

While this returns True, TTMSFNCCustomDataGridDatabaseAdapter.AutoRemoveColumns keeps the collection when the dataset closes.

Returns

True when at least one item has a non-empty TTMSFNCDataGridDatabaseAdapterColumn.FieldName and is not TTMSFNCDataGridDatabaseAdapterColumn.AutoCreated; otherwise False.