Click or drag to resize

DataMappingTable Class

Base class for tables used in DataMappingTableHostEXTENSION, TABLETYPE, ROWCONTROLTYPE, SETTINGS. This class should not be used directly. Rather DataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS should be specialized further.
Inheritance Hierarchy
SystemObject
  CTExtensions.ExportCore.Config.DataMappingDataMappingTable
    CTExtensions.ExportCore.Config.DataMappingDataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS

Namespace: CTExtensions.ExportCore.Config.DataMapping
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public abstract class DataMappingTable : IDisposable

The DataMappingTable type exposes the following members.

Constructors
 NameDescription
Public methodDataMappingTable Constructor
Top
Properties
 NameDescription
Public propertyColumnControls Column Definitions for data mapping
Public propertyControl Exposes the actual WinForm control so it can be added to parent container.
Public propertyIsDisposed Do not use disposed object.
Public propertyIsHeader Is this control the header of a table
Public propertyRowCount Rowcount getter and protected setters
Top
Methods
 NameDescription
Public methodAddControl Add control to specific cell
Protected methodAllMappingsValid Used to determine if all visible rows are fully defined, and a new empty row should be added.
Public methodButtonClicked Called when Button in a column is clicked.
Protected methodCreateActionColumn Creates the TAG_ACTION column.
Protected methodCreateColumnControls Define the controls of your table. TAG_STATUS and TAG_ACTION are added automatically.
Protected methodCreateStatusColumn Creates the TAG_STATUS column.
Public methodDispose Dispose
Protected methodDispose(Boolean) Dispose pattern.
Public methodGetColumn Returns column index of the control, or -1 if not found.
Public methodGetRow Returns row index of the control, or -1 if not found.
Public methodInit MUST BE CALLED immediately after object creation.
Protected methodInitTableStyle Initializes the default style for the table control.
Protected methodIsValidForSaving Return true if the data currently shown has enough set to be saved. Note that all data has to be good for saving, but e.g. only MainBinding or parts of it depending on your case.
Public methodPropertyChanged Called when any property changes. If you want to avoid this event when filling the object, wrap your setters to
C#
row.InitProperties(() => 
  {
    row.MyProperty = ... // Will not send PropertyChanged event.
  });
Public methodRefreshComboContent Called when ComboBox dropdown is opened. Use LoadComboValuesT(String, IEnumerableToStrWrapT) to populate the combo.
Public methodRemoveControl Remove control from table
Public methodResumeLayout Resumes layout calculations, performs them and sets redraw to true and invalidates. Stacks the calls; only last one is effective!
You MUST call ResumeLayout(Boolean) as many times as you call SuspendLayout.
Use pattern such as
C#
try
{
  SuspendLayout();

  ...TODO: your other code...

}
finally
{
  ResumeLayout();
}
...or use UIAction(Action, Boolean) / UIActionT(FuncT, Boolean) wrappers!
Public methodStringifyT Provide localized string for given value.
Public methodSuspendLayout Suspends layout calculations and sets redarw to false. Stacks the calls; only first is effective!
You MUST call ResumeLayout(Boolean) as many times as you call SuspendLayout.
Use pattern such as
C#
try
{
  SuspendLayout();

  ...TODO: your other code...

}
finally
{
  ResumeLayout();
}
...or use UIAction(Action, Boolean) / UIActionT(FuncT, Boolean) wrappers!
Public methodUIAction(Action, Boolean) UI Action wrapper that simply suspends the layout and drawing
Public methodUIActionT(FuncT, Boolean) UI Action wrapper that simply suspends the layout and drawing
Top
Fields
 NameDescription
Public fieldStatic memberTAG_ACTIONTag for 'Action' -button which is automatically added as last column.
Public fieldStatic memberTAG_STATUSTag for 'Status' -column which is automatically added as first column.
Top
Revision History
DateVersionDescription
-2025 SP1First Release
See Also