private void BindFields()
{
DataTable table = Globals.ConvertDataReaderToDataTable(DataProvider.GetFields());
_fieldCount = table.Rows.Count;
dataGrid.DataSource = table;
dataGrid.DataBind();
}
The ConvertDataReaderToDataTable, provided by the DotNetNuke platform, throws this exception :
A column named [column name] already belongs to this DataTable
I do have columns with the same names in different tables, but they are primary/foreign key pairs and thus have the same values. What would you do to solve this problem?