|
스트링그리드에서 셀부분이 길면 오래 걸리네요.
흠...
한 4000개의 줄을 읽어 들여서
for(int j = 1; j < row+1; j++)
{
for(int i = 1; i < col+1; i++)
{
MainForm->StringGrid1->Cells[i][j] = XLSheet.OlePropertyGet("Cells", j , i).OlePropertyGet("Value");
MainForm->StringGrid1->Cells[0][j] = IntToStr(j);
MainForm->StringGrid1->Cells[i][0] = IntToStr(i);
Application->ProcessMessages();
}
}
위와 같은 방식으로 넣어 버리면...
무지하게 오래 걸립니다..
물론 프로그램이 먹통되는 현상은 없앴지만요..
원래 이렇게 느린건지....좋은 방법이 없을까나요..?
|