" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Populating datagrid from a XML file in.NET

Posted on November 23rd, 2015 by Monalisa Chakraborty

This tip explains how you can populate a datagrid with values of specific nodes of a XML file. The XML file we are taking in this example contains month names. We have to retrieve month names corressponding to particular nodes. The month node itself is further divided into 3 parts. The first part contains the […]

How to save values from data grid to an XML file?

Posted on November 23rd, 2015 by Monalisa Chakraborty

In this tip we will see how to save datagrid values to an XML file. The data is to be stored in 3 nodes – data name, value and comment . The following code snippet demonstrates how to save datagrid values to an XML file.     Dim objDoc As New XmlDocument() ‘object for access […]