private DataTableRow CreateDataTableRow(Person person) { var newDataTableRow = new DataTableRow { DeleteAction = DeleteTableRow, Data = person }; return(newDataTableRow); }
private void DeleteTableRow(DataTableRow tableRow) { Db.Transact(() => { tableRow.Data.Delete(); }); this.DataTable.LoadRows(); }