Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 67011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:11:35+00:00 2026-05-10T19:11:35+00:00

Both DataSource and DataSourceID are defined on ‘grdCommunication’. Remove one definition. I just got

  • 0

‘Both DataSource and DataSourceID are defined on ‘grdCommunication’. Remove one definition.’

I just got this error today, the code has been working until this afternoon I published the latest version to our server and it broke with that error both locally and on the server. I don’t use ‘DataSourceID’, the application reads database queries into a datatable and sets the datatable as the DataSource on the GridViews. I did a search in Visual Studio, searching the entire solution and the string ‘DataSourceID’ does not appear in even 1 line of code in the entire solution. This is the first thing that freaked me out.

I figure it had been working yesterday, so I reverted the code to yesterday’s build. The error was still there. I kept going back a build, and still the issue is there. I went back a month, I am still getting the same error. This application was working fine this morning? There has really been no code changes, and no where in the application is the DataSourceID EVER set on any of the gridviews. Has anyone ever seen anything like this at all??

How can I get that error if DataSourceID is never set… and the word ‘DataSourceID’ is not in my solution? I just did a wingrep on the entire tree doing a case insensitive search on datasourceid…. pulled up absolutely nothing. That word is absolutely no where in the entire application.

    <asp:GridView ID='grdCommunication' runat='server'      Height='130px' Width='100%'      AllowPaging='true' >     ... standard grid view column setup here...      </asp:GridView>  // Code behind.. to set the datasource   DataSet dsActivity = objCompany.GetActivityDetails();    grdCommunication.DataSource = dsActivity;   grdCommunication.DataBind(); 

// Updated: removed some confusing notes.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:11:36+00:00Added an answer on May 10, 2026 at 7:11 pm

    Try this:

    DataSet dsActivity = objCompany.GetActivityDetails(); grdCommunication.DataSource = dsActivity.Tables[0]; grdCommunication.DataBind(); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Both of these appservers are at least in part OSGI based. One (Glassfish) is
I've got a question regarding the difference between PropertyPlaceholderConfigurer (org.springframework.beans.factory.config.PropertyPlaceholderConfigurer) and normal filters defined
I want to union, merge in a List that contains both references, so this
This is beyond both making sense and my control. That being said here is
This error is thrown a lot, but I can't find the solution. I am
Let's say, I have a 2 TextBox, a button, and a DataSource. This is
Both vcs roots show success when testing the connection, but one always errors on:
Both the jQuery and Prototpye JavaScript libraries refuse to allow me to use a
Both are mathematical values, however the float does have more precision. Is that the
Both of them are mbeans. Both are intended to setup Hibernate Session Factory and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.