예제 #1
0
        /// <summary>
        ///
        /// This method will append an empty DataRow to the list and then return it for usage to the caller
        /// (such as filling it with values).
        ///
        /// <returns>The new empty DataRow that has been inserted into the internal list</returns>
        /// </summary>
        public WonkaPrdGroupDataRow AppendRow()
        {
            WonkaPrdGroupDataRow NewDataRow = new WonkaPrdGroupDataRow(MasterGroup);

            DataRowVector.Add(NewDataRow);
            return(NewDataRow);
        }
예제 #2
0
        public void DeleteRows()
        {
            foreach (WonkaPrdGroupDataRow TempDataRow in DataRowVector)
            {
                TempDataRow.ClearData();
            }

            DataRowVector.Clear();
        }
예제 #3
0
 public void DeleteRow(int pnRowIndex)
 {
     ValidateRowIndex(pnRowIndex);
     DataRowVector.RemoveAt(pnRowIndex);
 }
예제 #4
0
 /// <summary>
 ///
 /// This method will append the provided DataRow to the internal list.
 ///
 /// <param name="ProvidedDataRow">The DataRow that we will insert into our internal list (after it has been validated)</param>
 /// <returns>The provided DataRow that has been inserted into the internal list</returns>
 /// </summary>
 public WonkaPrdGroupDataRow AppendRow(WonkaPrdGroupDataRow ProvidedDataRow)
 {
     ValidateDataRow(ProvidedDataRow);
     DataRowVector.Add(ProvidedDataRow);
     return(ProvidedDataRow);
 }