I adapted this from one of the samples illustrating how to copy grid’s contents. My grid has 8000 rows and 30 columns. When I tried to copy it it took close to 30 minutes. Here’s the code selection:
foreach (Row row in rl)
{
if (row is Xceed.Grid.DataRow)
{
foreach (Cell cell in ((CellRow)row).Cells)
{
if (cell.Visible)
text += cell.Value.ToString() + “\t”;
}
text += Environment.NewLine;
}
}
data.SetData(DataFormats.Text, text);
Is there any way to optimize the operation?
Imported from legacy forums. Posted by Natalie (had 1853 views)