WinGrid LINQ To XML CRUD Sample

Tom Puglisi / Tuesday, September 1, 2009

Hi everyone,

I wrote this sample last year so that I can learn a little about LINQ to XML. This sample basically loads data from an XML file into a list of objects that gets bound to WinGrid. I used several techniques to handle the create, read, update, and delete operations. I also allow the end user to discard changes by restoring the initial copy of the records before they are altered.

Usage:

Run the application. Load the Orders.xml file. Make changes to the records. Save or Cancel your changes.

Please review the code and comments to see the approach I took to make this sample. You will also have to update your assembly references so that they match the NetAdvantage Windows Forms version that you have on your machine.

Download the sample:

http://download.infragistics.com/users/TomP/Linq2Xml_WinGrid.zip