|
AnsiString __fastcall TActionArrayForm::GetAddString()
{
AnsiString result;
for(int i=1; i<grid1->RowCount; i++)
{
if(grid1->GetCheckBoxState(1, i, true)==true)
{
result.cat_printf("%s;", grid1->Cells[2][i].c_str());
}
}
ShowMessage(result);
return result;
}
이게 소스구요...
grid1->GetCheckBoxState(1, i, true) 이게 무조건 true값이 나오네요.
체크박스가 해제 되어 있는데도 불구하고...
grid1->GetCheckBoxState(1, i, false) 이렇게 해도 true값이 나옵니다.
이거 왜 이러는지 아시는 분 있나요?
혹은 체크박스의 체크 여부를 알 수 있는 방법이라도 있나요?
자꾸 질문 해서 죄송합니다...
|