Hi all,
I am experimenting some troubles in speeding up the filling of a RadGridView. If I fill it row by row (Add method) the result is correct but slow (more than 10s for 300 rows). If I create a GridViewRowInfo array and then fill the Grid with AddRange the task is completed istantaneously, but then the result differs from the one obtained through the Add method (problems in row selection and column resize, not depending on the AllowX properties). In particular I think the my errors are in creating each GridViewRowInfo, that needs a GridViewInfo that needs a GridViewTemplate. Here the code:
GridViewTemplate template = new GridViewTemplate();template.AllowColumnResize = true;foreach (GridViewColumn col in myGrid.Columns) template.Columns.Add((GridViewDataColumn)col);GridViewInfo info = new GridViewInfo(template);GridViewRowInfo row = new GridViewRowInfo(info);row.AllowResize = true;// oRow contains the values for the cellsfor (int i = 0; i < oRow.Length; i++) row.Cells[i].Value = oRow[i]; row.Tag = epropSample;Hope someone could help!
Thanks in advance!
Roberto