private void simpleButton2_Click(object sender, EventArgs e)
{
DataTable dt3 = (DataTable)gridControl1.DataSource;
dt3.TableName = "CustomerList";
if (dt3.Rows.Count <= 0)
{
MessageBox.Show("There are no records available");
return;
}
//dt3.WriteXml
dt3.WriteXml(@textBox2.Text + "\\Customer.xml");
{
MessageBox.Show("Data successfully saved to file");
return;
}
}
Do more with
Premium Content
You need an Expert Office subscription to comment.Start Free Trial