WPF DataGrid RowEditEnding Event to call Update
问题 I am using WPF . . . datagrid bound to a database via the VisualStudio IDE drag and drop, and found a way to have my datagrid update and add to the database in real time using the RowEditEnding event thusly: private void Update_WatchList(object sender, DataGridRowEditEndingEventArgs e) { UpdateWatchList(); } private void UpdateWatchList() { dsDocControlTableAdapters.DocumentWatchListTableAdapter ta = new dsDocControlTableAdapters.DocumentWatchListTableAdapter(); try { DataRowView dr =