public void loadgrid()
{
string folder = @"D:\Newfolder\tirumala";
if (Directory.Exists(folder))
{
DataSet ds = new DataSet();
string xml = @"D:\Newfolder\tirumala\myxml.xml";
ds.ReadXml(xml);
dataGridView1.DataSource = ds;
dataGridView1.DataMember = ds.Tables[0].ToString();
}
else
{
MessageBox.Show("no records were found");
}
}
Hi..all, this is the code wht i have to bind a dataset table to datagrid.... whrer teh dataset is getting data from an an XMl file....
if there occurs any changes in the XMl file .immediately those changes to be reflected on to the datagrid.... immediately when the xml file is modified ...
kindly tell me the process to follow..............