Click or drag to resize

DataMappingRowControl Class

This is a base class for row controls used with DataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS. A DataMappingRowControl owns the Controls and populates them to the ParentTable. It has a DataMappingRowControlRowStatus available with Status property. It's either a IsMainControl i.e. the MainBindings of a DataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS, or one of the AdditionalBindings.

Supports adding a ComboBox, a Label, or a Button as cell control for each cell. Combos show errorneous data i.e. set values that do not exist as items when combos are populated.
Inheritance Hierarchy
SystemObject
  CTExtensions.ExportCore.Config.DataMappingDataMappingRowControl
    CTExtensions.ExportCore.Config.DataMappingRoutableDataRowControl

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

The DataMappingRowControl type exposes the following members.

Constructors
 NameDescription
Public methodDataMappingRowControl Constructor
Top
Properties
 NameDescription
Public propertyControls Cell Controls created for this row.
Public propertyHasErrors A control can have errors, if a combo has been set to a value that was not available when the combo was populated with LoadComboValuesT(String, IEnumerableToStrWrapT).
Public propertyIsMainControl A DataMappingTable has one "Main Binding Control" and possibly several "Additional Binding Controls". True if this is the main control.
Public propertyParentTable Parent Table.
Public propertyStatus Satus of this row. Sets the status field icon accordingly.
Top
Methods
 NameDescription
Protected methodComboGetT Get the currently set value of a combo.
Protected methodComboSelectT Select given value from combo. Adds the value as error item to the combo if the select was done outside InitProperties(Action) context.
Public methodDispose Dispose
Protected methodDispose(Boolean) Dispose
Public methodEnableControl Enable/disable control with tag. The control must exists.
Public methodGetControlT Get the underlying control by tag name.
Public methodHasCombo True if this row has a combobox behind the given tag.
Public methodInit Initialize this row. This should be called only by DataMappingTable.
Protected methodInitializeDefaults Initialize default values for new row.
Public methodInitProperties Convenience function that allows settings properties without causing PropertyChanged(DataMappingRowControl, String) event.
Public methodIsMappingValid Return true if the mapping is validly defined.
Protected methodLabelGet Get the label text with tag. Label must exist.
Protected methodLabelSet Set the label text with tag. Label must exist. Causes PropertyChanged(DataMappingRowControl, String) unless called in InitProperties(Action) context.
Public methodLoadComboValuesT Loads values to combo with tag. The combo must exists.
Public methodReset Reset this row by Disposing all its controls and recreating them.
Public methodSetButtonText Set text for a button with tag. Button must exist.
Public methodSetErrorItemT Sets given item as error item.
Public methodShowControlT Show/hide control with tag. The control must exist.
Internal logic simply replaces the control with Panel, as the underlying TableLayoutPanel tends to collapse on control hide.
Protected methodTextFieldGet Get the TextBox text with tag. TextBox must exist.
Protected methodTextFieldSet Set the TextBox text with tag. TextBox must exist. Causes PropertyChanged(DataMappingRowControl, String) unless called in InitProperties(Action) context.
Top
Revision History
DateVersionDescription
-2025 SP1First Release
See Also