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

  • Home
  • SEARCH
  • 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 8587711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:38:06+00:00 2026-06-11T22:38:06+00:00

I have an XML file and and a class representing the XML structure. I

  • 0

I have an XML file and and a class representing the XML structure. I have deserialized the XML file into the class. I want to display all the properties into the form. Can anyone suggest if it is possible and how to deserialize the XML into datagridview?

  • 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-11T22:38:07+00:00Added an answer on June 11, 2026 at 10:38 pm

    For the most part, de-serialization involves have a valid class structure and or object to de-serialize the thing into, whether that is Xml deserialization, or Binary, or SOAP…etc etc. You have the class, so the de-serialize step will be simple enough, just create the serializer and call deserialize(xml). As for the second part…well, you have to create a datagridview and bind to the object.

    so, yes, totally possible. without access to the object, the class definition, or the xml, this is all the information I can give you.

    Some basic code structure.

    XmlSerializer ser = new XmlSerializer(typeof(MyClass));
    MyClass obj = ser.DeSerialize(xmlDoc);
    
    MyDataGridView.DataSource = obj;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've the problem: I have to serialize class to XML file. But two properties
I have the following class that I want to serialize to an XML file
I have an XML file that I deserialize into a class object. This class
i have xml file like Below and Device class and i want get List<Device>
In my extended PreferenceActivity class I call addPreferencesFromResource(R.xml.livewallpaper_settings) so I have a xml file
I have a class which loads an xml file using the following: Path.Combine( AppDomain.CurrentDomain.BaseDirectory,
I have a class which is serialized to and from an XML file when
I have a context loader class which loads an XML file with info on
I have a C# class method that return a xml document not file. How
I have xml file with such structure: ... <outer> ... <inner/> ... </outer> ...

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.