'---------------------------------------------------- '-- Move the new record to the BizTransactionItemsStock1 BO ' and clear the temporary BO '---------------------------------------------------- If Me.BizTransactionItemsStock_ForNewRecords.Count > 0 Then '-- Reset filter condition to show all selected cards. Me.BizTransactionItemsStock1.Filter = "" '-- Copy new records to the main Stock BO Me.BizTransactionItemsStock1.CopyDataFrom(Me.BizTransactionItemsStock_ForNewRecords, BusinessCloneDataType.AppendDataToTableFromDefaultView) Me.BizTransactionItemsStock_ForNewRecords.Clear() '-- Loop through all new records as set their state as Added. Me.BizTransactionItemsStock1.Filter = "PK_TransactionItemsStock < 0" For Each StockBO As bizTransactionItemsStock In Me.BizTransactionItemsStock1.GetEnumerable StockBO.CurrentRow.SetAdded() Next End If