This code XML data load to gridview in wpf application. when i want to xml data load to the gridview using back end csharp code. its very simple. 1. Create DataSet object and then 2. Load the xml file to dataset using readxml property. 3. dataset value pass to the gridview itemsource.

DataSet dataSet = new DataSet();


dataGrid1.ItemsSource = dataSet.Tables[0].DefaultView; 


Related Posts Plugin for WordPress, Blogger...