Represents a row from array view.
Inheritance: ICustomTypeDescriptor, IEditableObject, IDataErrorInfo
        /// <summary>
        /// Initializes a new ArrayDataView from array.
        /// </summary>
        /// <param name="array">array of data.</param>
        public ArrayDataView(Array array)
        {
            if (array.Rank != 2)
                throw new ArgumentException("Supports only two dimentional arrays","array");

            _data = array;

            _rows = new ArrayRowView[array.GetLength(0)];

            for(int i = 0; i < _rows.Length; i++)
            {
                _rows[i] = new ArrayRowView(this,i);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new ArrayDataView from array.
        /// </summary>
        /// <param name="array">array of data.</param>
        public ArrayDataView(Array array)
        {
            if (array.Rank != 2)
            {
                throw new ArgumentException("Supports only two dimentional arrays", "array");
            }

            _data = array;

            _rows = new ArrayRowView[array.GetLength(0)];

            for (int i = 0; i < _rows.Length; i++)
            {
                _rows[i] = new ArrayRowView(this, i);
            }
        }