Here is the workaround. You can use HasChanges, before calling Get and Accept Changes as:
if (ds.HasChanges(DataRowState.Modified))
{
DataTable xdt = ds.Tables[i].GetChanges(DataRowState.Modified);
if (xdt != null)
{
ds.Tables[i].AcceptChanges();
}
}