"DBGrid index Out of Range "
Query1->DisableControl();
for(int i=0; i<100; i++)
{
Query1->Append();
Query1->FiledByName("f1")->Value="sss";
Query1->FiledByName("f2")->Value="sss1";
Query1->Post();
}
Query1->EnableControl();
为什么加上 :
Query1->DisableControl();
Query1->EnableControl();
时有时候会出现"DBGrid index Out of Range " 错误!