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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:53:37+00:00 2026-05-31T13:53:37+00:00

I have 2 Datatable dt and dt2 var dt = MultiCheckCombo3.GetAllChechedBox(); var dt2 =manager.GetAllStudents(student_id,

  • 0

I have 2 Datatable dt and dt2

 var dt = MultiCheckCombo3.GetAllChechedBox();

 var dt2 =manager.GetAllStudents(student_id, classid);

In the first table dt are two columns “id_staff” and “name_staff”
In the second table are several columns but 2 of them repeat “id_staff” and “name_staff”
I want to create a new DataTable with the fields “id_staff” and “name_staff” common DataTable dt and dt2

how joined these tables?
dt3= dt+dt2

  • 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-05-31T13:53:38+00:00Added an answer on May 31, 2026 at 1:53 pm

    You can use Linq to join the two tables. See the following example.

    Code from the article:

    var innerGroupJoinQuery =
        from category in categories
        join prod in products on category.ID equals prod.CategoryID into prodGroup
        select new { CategoryName = category.Name, Products = prodGroup };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have DataTable with two columns Author and Bookname . I want to check
var id = Session[staff_id].ToString() //I have datatable with 5 columns DataTable dt = function_return_Datatable(id);
I have a datatable with two columns. I want to store the rows of
I have two DataTables dt1 and dt2. Each table have different data in them
I have datatable as Item source for DataGrid, this datatable has lots of columns.
i have a datatable in SQL server which contains 3 columns. 1st is DateTime,
Let's say I have two DataTables DT1 and DT2 with a single row. DT1
I have DataTable with the following columns: ClientID date numberOfTransactions price ClientID is of
I have: DataTable Table = new DataTable; SqlConnection = new System.Data.SqlClient.SqlConnection(Data Source= + ServerName
I have datatable table like id name address phoneno 1 abc kfjskl 798798 2

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.