示例#1
0
 public void CancelEdit()
 {
     if (this.inChangingEvent)
     {
         throw ExceptionBuilder.CancelEditInRowChanging();
     }
     this._table.FreeRecord(ref this.tempRecord);
     this.ResetLastChangedColumn();
 }
示例#2
0
        /// <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;
        }