|
아래에 다른 분이 하셨던것을 참고해서
while(1)
{
if (Query3->Eof) break;
TCheckBox* t = new TCheckBox(this);
StringGrid->Objects[0][co] = t;
t->Parent = StringGrid;
t->BoundsRect = StringGrid->CellRect(0,co+1);
t->Width = 15;
t->Height = 15;
t->OnMouseUp = CheckBoxMouseUp;
StringGrid->Cells[1][co+1] = Query3->FieldByName("si")->AsString;
Query3->Next();
co++;
StringGrid->RowCount = co + 1;
}
게 해서 Check 는 잘되는데요
Row의 수가 감소했을때 CheckBox가 지워지지 않아요
그리고 StringGrid상에 있는 CheckBox가 Check 되었는지는 어떻게 알수있나요
|