c1FlexGrid1.Cols.Count = 300;
for (int i = 0; i < c1FlexGrid1.Cols.Count; i++)
{
c1FlexGrid1.Cols.Name = i + "";
c1FlexGrid1.SetData(0, i, "T" + i);
}
c1FlexGrid1.Rows.Count = 60000;
c1FlexGrid1.BeginUpdate();
for (int i = 1; i < c1FlexGrid1.Rows.Count; i++)
{
for (int j = 1; j < c1FlexGrid1.Cols.Count; j++)
{
c1FlexGrid1.SetData(i, j, "value" + i + "->" + j);
}
c1FlexGrid1.SetData(i, 0, i);
}
c1FlexGrid1.EndUpdate();
MessageBox.Show("a");
老师您看下这个代码,执行时间非常久 |