public void Delete(Pick record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpick.NewttblpickRow(); Pick.BuildMinimalRow(ref row, record); this.dataSet.ttblpick.AddttblpickRow((pdspickDataSet.ttblpickRow)row); } row.Delete(); this.SaveChanges(); }