Saturday, May 5, 2012

XML show in datagrid


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Examples
{
    public partial class XMLRead : Form
    {
        public XMLRead()
        {
            InitializeComponent();
        }

        DataSet ds = new DataSet();
        private void XMLRead_Load(object sender, EventArgs e)
        {
            ds.ReadXml(@"E:\tutorials\asp.net+c#\demo\Examples\Examples\Student.xml");
            dataGrid1.DataSource = ds;
            System.Diagnostics.Process.Start("iexplore", @"E:\tutorials\asp.net+c#\demo\Examples\Examples\Student.xml");
        }
    }
}

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...