private void button1_Click(object sender, RoutedEventArgs e) { ds.ReadXml("c:\\new.xml"); dataGrid1.DataContext = ds.Tables[0].DefaultView; } private void dataGrid1_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { ds.WriteXml("c:\\new.xml"); MessageBox.Show("Row is added successfully."); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)