TTMSFNCDataGridDatabaseAdapter.ConvertDataToField Method
Writes a cell value to a dataset field, applying OnDataToField and the default conversion.
API unit family: TMSFNCDataGridDatabaseAdapter
Declaring type: TTMSFNCDataGridDatabaseAdapter
Inherited from: TTMSFNCCustomDataGridDatabaseAdapter
Syntax
procedure ConvertDataToField(ACell: TTMSFNCDataGridCellCoord; AMasterField, AField: TField; AInplaceEditor: TTMSFNCDataGridInplaceEditor; ACellValue: TTMSFNCDataGridCellValue);
void __fastcall ConvertDataToField(const TTMSFNCDataGridCellCoord &ACell, Data::Db::TField* AMasterField, Data::Db::TField* AField, TTMSFNCDataGridInplaceEditor* AInplaceEditor, const TTMSFNCDataGridCellValue &ACellValue);
Remarks
The dataset must already be in edit or insert mode, for example after DataSetEdit; this method neither starts editing nor posts. Call DataSetPost to store the record.
Parameters
| Name | Description |
|---|---|
ACell |
Grid cell the value belongs to; passed on to OnDataToField. |
AMasterField |
For a lookup column, the lookup field; otherwise nil. |
AField |
Field that receives the value. Nothing happens when it is nil. |
AInplaceEditor |
Editor that produced the value, or nil. When it is a combo box whose selected item carries a lookup item, that item's key is written instead of ACellValue. |
ACellValue |
The value to write. |