Iterating the Grid rows and columns is very very slow

2 posts, 0 answers
  1. Munish
    Munish avatar
    14 posts
    Member since:
    Apr 2013

    Posted 03 Mar 2014 Link to this post

    I am iterating through the rows and columns of the grid view like this :
    foreach (var row in radGridView.Items)
                            foreach (var column in HeaderInfo)
                                string sUniquename = uniqueNames[iColumn];
                                var boundColumn = radGridView.Columns[sUniquename] as GridViewBoundColumnBase;
                                if (boundColumn != null)
                                {                                string data = string.Format("{0}", boundColumn.GetValueForItem(row));}
                                iColumn += 1;}}
    The thing is that its too slow ...for a grid with say 80k rows it is taking 5 minuted to complete this loop...I guess internally it is building up the rows internally as our grid has virtualization enabled.

    Please suggest if something can be done on this.
  2. Yoan
    Yoan avatar
    1215 posts

    Posted 03 Mar 2014 Link to this post

    Hello Munish,

    I have just replied to the other thread on the same topic.

Back to Top