This class provides support for adding one or more columns
to a
DataGridView control on a
Form,
and for duplicating a DataGridView.
System Object CleanCode.Forms DataGridColumnAdderNamespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
public class DataGridColumnAdder
public class DataGridColumnAdder
Public Class DataGridColumnAdder
Public Class DataGridColumnAdder
public ref class DataGridColumnAdder
public ref class DataGridColumnAdder
This class is useful if you want to adorn an existing
DataGridView with additional columns.
It is particularly convenient for a form that is refreshed
at regular intervals. To use, instantiate an object as in:
columnAdder =
new DataGridColumnAdder(myDataSet.DataTable1, myDGV, idColumn);
columnAdder =
new DataGridColumnAdder(myDataSet.DataTable1, myDGV, idColumn);
DataTable1TableAdapter.Fill(myDGV.DataTable1);
DataTable1TableAdapter.Fill(myDGV.DataTable1);
columnAdder.AddColumnData();
columnAdder.AddColumnData();
Then whenever you refresh the DataGridView...
... follow that by a refresh of the additional unbound columns.
Since CleanCode 0.9.07.