This is a migrated thread and some comments may be shown as answers.

Iterating the Grid rows and columns is very very slow

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Munish
Top achievements
Rank 1
Munish asked on 03 Mar 2014, 09:24 AM
Hi 
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.

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 03 Mar 2014, 05:44 PM
Hello Munish,

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

Regards,
Yoan
Telerik
Tags
GridView
Asked by
Munish
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or