DataTable.GetChanges return null
-
Hi, I have a DataGrid bound to a DataTable. I used the following code to bind the DataTable, // //Set the datasource of the Grid // this.dataGridPCUD.DataSource = this.dataTable; There is a save button that user clicks to save the information. The problem is that when the user makes changes and clicks Save, the information from the last cell of the GRID is not seen by the DataTable. I used the following code to get the changes CurrencyManager currencyManager = (CurrencyManager) this.dataGridPCUD.BindingContext[this.dataTable]; if (currencyManager != null) { currencyManager.EndCurrentEdit(); currencyManager. Refresh(); } DataTable subDataTable = this.dataTable.GetChanges(DataRowState.Modified); The heilighted line returns null. But when I check the new value in the DataTable, I see the modifies value. Everything works fine if the uses tabs out before saving. Please advise. Thanks and Regards, Alomgir Miah