I am populating a datatable directly from an oledbdatareader. My SQL query is using a bunch of aggregate functions so I didnt want to use the same field names in the datatable.
So I keep getting this error:
Any ideas? Also this is a ASP application. Im guessing it has something to do with table mappings.
So I keep getting this error:
Code:
System.ArgumentException: Column ColumnName does not belong to table .
at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRow.get_Item(String columnName)
at search.getlist()
Any ideas? Also this is a ASP application. Im guessing it has something to do with table mappings.