Initializes a new instance of
the DataGridColumnAdder class.
Namespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public DataGridColumnAdder( DataTable sourceTable, DataGridView targetTable, string idColumnName )
Parameters
- sourceTable
- Type: System.Data DataTable
Table from which to copy column names and values.
- targetTable
- Type: System.Windows.Forms DataGridView
Table to add columns to.
- idColumnName
- Type: System String
Key column in the sourceTable and targetTable to match rows between them.
Exceptions
Exception | Condition |
---|---|
System FormatException | if idColumnName is not present in the targetTable. |
Remarks
See Also