TTMSFNCDataGrid get Column of Adapter or vice versa

Is it possible to get the Corresponding TTMSFNCDataGridDatabaseAdapterColumn for a TTMSFNCDataGridColumns or vice versa.

This would be really helpful because in my tests the date-Fields are not always correctly displayed. Sometimes they are formatted as float. In this case i guess i could change the TTMSFNCDataGridColumnFormatting.&Type but in the TTMSFNCDataGridColumn i don´t have the TField to check if it is in fact a Date, DateTime or Timestamp.

image

Right now, there is not, but we'll add a way to go from database column to grid column.

We have added this as a new property GridColumn. We also added ColumnAtField at database adapter to easily get the column for a specific field name, for example

  TMSFNCDataGridDatabaseAdapter1.ColumnAtField['Timestamp'].GridColumn.Formatting.&Type := gdftDateTime;
  TMSFNCDataGridDatabaseAdapter1.ColumnAtField['Timestamp'].GridColumn.AddSetting(gcsFormatting);

We'll release an update in the upcoming days

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.