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
  • 0 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

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A key is what you use to access an object… May 11, 2026 at 11:38 pm
  • Editorial Team
    Editorial Team added an answer If you are using them all over, you can store… May 11, 2026 at 11:38 pm
  • Editorial Team
    Editorial Team added an answer If its just for quick testing or whatever, you could… May 11, 2026 at 11:38 pm

Related Questions

Both DataSource and DataSourceID are defined on 'grdCommunication'. Remove one definition. I just got
I am having an issue on Sorting a ListBox with a dropdown. The dropdown
I have a Form (Compact Framework, actually) with a few fields, a date and
i just tinkered around with Google Guice for Dependency Injection and started integrating it
What is considered the best way of handling multiple NSTableViews without using Cocoa Bindings?

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.