Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am populating a datatable directly from an oledbdatareader. My SQL query is using a bunch of aggregate functions so I didn't want to use the same field names in the datatable.

 

So I keep getting this error:

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. I'm guessing it has something to do with table mappings.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...