Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

[C#.Net]Loading XML into DataGridView

Loading...

Sign in or sign up now!
28,770
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 28, 2009

This tutorial shows how to load a xml file into a datagridview.

Language : C#
IDE : Microsoft Visual C# Express Edition

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ISSDUC)

  • what did you use for video capture? i need to turn in a tutorial assignment for my programming class

  • @chikotube

    I've used Camtasia for my recording.

  • This method is obsolete. The XmlDataDocument class will be removed in a future release of the .Net Framework.

  • @stevelydford

    That's true

  • do you know how to do it with c++? I got an error in XmlDocument doc = new XmlDocument();

  • @pempek8282

    You can only use it in C++.NET and the syntax may differ.

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • thanks!!

  • Do you know how to load a XMLschema with the XML file and view it in the datagrid ?

    Thanks

  • @juanhdz2 Try using .DataBind()  thanks.

  • Thanks for the tut.

    A question though : do you not need to add columns to your DataGridView first and set their DataPropertyName's to map those in the xml? I mean, usually you do.

  • tnx man that tutotiral helped me

  • @juanhdz2

    I've not changed additional properties. Just drag&drop a DataGridView onto your Windows Forms. Use a Try-Catch Block and breakpoints to find your problem.

    Have you entered your DataMember correctly?

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more