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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:29:33+00:00 2026-05-13T06:29:33+00:00

Say I have 3 Dictionary<string, string> objects. All 3 have the same key like

  • 0

Say I have 3 Dictionary<string, string> objects. All 3 have the same key like so:

Dic1   Dic2   Dic3
K  V   K  V   K  V
A  s   A  z   A  i
B  d   B  e   B  u
C  a   C  r   C  o
D  w   D  t   D  p

Now, I would want to combine these dictionaries in to one DataTable, the DataTable should look like:

A s z i
B d e u
C a r o
D w t p

Any pointers or ideas on to how to get from the seperate dictionaries to the combined ones in the DataTable?

  • 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-13T06:29:34+00:00Added an answer on May 13, 2026 at 6:29 am
    var dic1 = new Dictionary<string, string>() 
    { 
        { "A", "s" },
        { "B", "d" },
        { "C", "a" },
        { "D", "w" },
    };
    
    var dic2 = new Dictionary<string, string>() 
    { 
        { "A", "z" },
        { "B", "e" },
        { "C", "r" },
        { "D", "t" },
    };
    
    var dic3 = new Dictionary<string, string>() 
    { 
        { "A", "i" },
        { "B", "o" },
        { "C", "u" },
        { "D", "p" },
    };
    
    var table = new DataTable();
    table.Columns.Add("K", typeof(string));
    table.Columns.Add("c1", typeof(string));
    table.Columns.Add("c2", typeof(string));
    table.Columns.Add("c3", typeof(string));
    foreach (var key in dic1.Keys)
    {
        table.Rows.Add(key, dic1[key], dic2[key], dic3[key]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a data structure like a Dictionary<string, Dictionary<string, int>> or similar, and
Let's say I have a Dictionary<string,object> like so: var foo = new Dictionary<string, object>();
Say you have the collection of key/value pair. for e.g. : - dictionary<string,string> myObjectToBeCreated
I have dictionary of about 20,000 objects The key is a string representation of
Say that i have a generic dictionary with data like this (I hope the
Let's say I have a Dictionary<String, Guid> What is the fastest way to convert
How do we name a dictionary variable? Say in my method I have Dictionary<string,
Basically I would like to have some dictionary that is an abstaction over legacy
Say you have a Dictionary < string,object > . It might contain decimals, strings
I have a dictionary of compound objects made up of a string, a list,

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.