private void DeleteUseRowID(Contacts record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcontacts.NewttblcontactsRow(); Contacts.BuildMinimalRow(ref row, record); this.dataSet.ttblcontacts.AddttblcontactsRow((pdscontactsDataSet.ttblcontactsRow)row); } row.Delete(); this.SaveChanges(); }