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 8303165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:27:36+00:00 2026-06-08T17:27:36+00:00

I have 2 datatable DataTable1 and DataTable2, DataTable1 have the column as A,B,C,D and

  • 0

I have 2 datatable DataTable1 and DataTable2, DataTable1 have the column as A,B,C,D and DataTable2 has the Column as P,Q,R,S I want to add both the datatable column and want to create a new datatable as A,B,C,D,P,Q,R,S

Some one please help me how to do that

  • 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. Editorial Team
    Editorial Team
    2026-06-08T17:27:37+00:00Added an answer on June 8, 2026 at 5:27 pm

    This is not practical, and bad design.
    Simply because you cannot take two different things and bring them together without “commonality” as the Stig mentioned in his comment.

    Think about bring together 2 datatables, one has 5 rows and the other as 100.
    Unless there is something to join them by, I wouldn’t suggest trying to do this.
    Alternatively if you must have functionality, then I suggest you iterate through the datatables building a new datatable consisting of Datable1 and DataTable2.

    Below is sample of Join:

    from table1 in dt1.AsEnumerable()
    join table2 in dt2.AsEnumerable() on table1["Location"] equals table2["Location"]
    select new
    {
        Location = table1["Location"],
        Visa_Q1 = (int)table1["Visa_Q1"],
        Visa_Q2 = (int)table1["Visa_Q2"],
        Visa_Q3 = (int)table2["Visa_Q3"],
        Visa_Q4 = (int)table2["Visa_Q4"],
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one sqlserver 2008 r2 datatable, it has one column autoId int identity(1,1),
i have a DataTable that has a column (Profit). What i want is to
I have a DataTable which has 10 columns, and after I add some rows
I have a datatable in windows form and I want to add a new
I have a datatable with data in it (customer addresses). In some instances, column
I have a datatable which has an amount column & a status column. I
Consider i have a datatable dt and it has a column DateofOrder , DateofOrder
i have retrived this datatable from datasource and i want to add a more
I have a dataTable which has the column Device Type,DeviceName and label. There can
I have a DataTable that has a boolean column called [Invalid]. I need to

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.