GetTableColNames Method
Returns the column names.
Protected MustOverride Function GetTableColNames() As System.String()
protected abstract System.string[] GetTableColNames()

Return Value

Each array element is a column name. The order of the array is the same as the order of the columns.

protected override string[] GetTableColNames()
    DataGridView GridView = (DataGridView)(this.SourceControl);
    int TotalColumns = GridView.Columns.Count;
    string[] ColNames = new string[TotalColumns];
    for (int i = 0; i < TotalColumns; i++)
        ColNames[i] = GridView.Columns[i].HeaderText;
    return ColNames;