Click or drag to resize

DataMappingTable Methods

The DataMappingTable type exposes the following members.

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
See Also