Example #1
0
        public DataRowView [] FindRows(object [] key)
        {
            if (sort == null || sort.Length == 0)
            {
                throw new ArgumentException("Find finds a row based on a Sort order, and no Sort order is specified");
            }

            if (Index == null)
            {
                UpdateIndex(true);
            }

            int [] indexes = Index.FindAllIndexes(key);

            DataRowView[] rowViewArr = new DataRowView [indexes.Length];
            for (int r = 0; r < indexes.Length; r++)
            {
                rowViewArr [r] = rowCache [indexes[r]];
            }
            return(rowViewArr);
        }