public void CancelEdit() { if (this.inChangingEvent) { throw ExceptionBuilder.CancelEditInRowChanging(); } this._table.FreeRecord(ref this.tempRecord); this.ResetLastChangedColumn(); }
/// <include file='doc\DataRow.uex' path='docs/doc[@for="DataRow.CancelEdit"]/*' /> /// <devdoc> /// <para>Cancels the current edit on the row.</para> /// </devdoc> public void CancelEdit() { if (inChangingEvent) { throw ExceptionBuilder.CancelEditInRowChanging(); } if (tempRecord != -1) { Table.FreeRecord(tempRecord); } tempRecord = -1; }