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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:50:07+00:00 2026-05-24T03:50:07+00:00

I have been looking for an answer for this for a while: I have

  • 0

I have been looking for an answer for this for a while:
I have an XML file that is formatted like so:

<root>
    <string id = "STRING_ID">
        <node1> Some data </node1>
        <node2>
            <type>data</type>
        </node2>
        <Translations>
           <language name="ARABIC">
               <value>Some data</value>
               <date_last_changed>7-4-2011</date_last_changed>
           </language>
           <language name="CHINESE">
            ...
            ...
        </Translations>
    </string>

    <string id = "...">
       ...
       ...
</root>

I loaded a DataSet with information from an XML file.
I then bound the DataSet to a DataGridView via

DataGridView1.DataSource = dataSet1;

and then used

DataGridView1.DataMember = "string";

Currently the datagridview displays the content in node 1, and the value of the id attribute of each string element.

My question is: How do I populate a column with the data contained in all of the <value> elements of <language> in each <string> whose language name = "ENGLISH" or "ARABIC" and so on? Sounds like a query to me, but I’m not sure how to do this.

Basically I want one column to always display every english string corresponding to the appropriate string ID in my datagridview, and then one more column to display every string of a language that I select using a list in a ComboBox.

  • 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-24T03:50:08+00:00Added an answer on May 24, 2026 at 3:50 am

    If you are using Windows Forms Application, you should do the next thing:

    1. Drag and drop DataGridView for defined table from DataSource onto Form. That way the BindingNavigator and BindingSource are auto defined.
    2. Then you can edit DataGridView with a click on the arrow (look on the Form), which opens DataGridView Tasks. Here you can edit and add columns and do lots of other stuff (preview data etc.).

    If the DataGridView would not show you appropriate columns, then check under DataGridView properties, to which DataSource is currently bind. It has to be to properly defined, if you want to manipulate columns.

    Here is an example of DataSource, that can then be dragged and dropped on Windows Form Application. As you can see, the attributes can be dropped as various Controls. In your example, you should set the language as ComboBox. In this example, you can see the attribute Oznaka under table Model defined as ComboBox:
    Example of properly defined DataSet.

    In the end, it all depends, how the DataSet is constructed from the XML (which attributes are available to you). So if you do not have the right attributes defined for your problem, than you should go back and design proper DataSet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking for an answer to this for a while with no
I have been looking for an answer to this and could not find it
I've been looking for the answer to this question for a while now but
I have been looking for quite some time for an answer to this, and
I've been looking for this for a while, but haven't found an answer (blame
I've been looking for an answer to this question for a while now. I
I've been looking for a solution to this for a while now, have found
I have been struggling with this for a while and can't find the answer
I've been looking around for a while for an answer to this, but haven't
We've been looking for a while for an answer to this, but haven't found

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.