/// <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); }
/// <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); }