/// <summary>
 /// Copies all the IDataRow objects from the collection into the given array, starting at the given destination array index.
 /// </summary>
 /// <param name="array">The one-dimensional array that is the destination of the elements copied from the IDataRowCollection.</param>
 /// <param name="index">The zero-based index in the array at which copying begins.</param>
 public void CopyTo(IDataRow[] array, int index)
 {
     DataRow[] rowArray = new DataRow[array.Length];
     _dataRowCollection.CopyTo(rowArray, index);
     for (int iRow = 0; iRow < rowArray.Length; iRow++)
     {
         array[iRow] = new DS_DataRow(rowArray[iRow]);
     }
 }
Example #2
0
        // CGX SLM
        public override bool Equals(object obj)
        {
            if ((obj == null) || !(obj is DS_DataRow || obj is DataRow))
            {
                return(false);
            }

            if (obj is DS_DataRow)
            {
                DS_DataRow other = (DS_DataRow)obj;
                return(this == other);
            }
            else
            {
                DataRow other = (DataRow)obj;
                return(this == other);
            }
        }
 /// <summary>
 /// Initializes a new instance of the DS_DataRowChangeEventArgs class.
 /// </summary>
 /// <param name="row">The IDataRow upon which an action is occuring. </param>
 /// <param name="action">One of the DataRowAction values. </param>
 public DS_DataRowChangeEventArgs(DS_DataRow row, DataRowAction action)
 {
     _args = new DataRowChangeEventArgs(row.dataRow, action);
     _row  = row;
 }