|
GetEditorType 외에 두가지 작업을 추가로 해주어야 합니다.
1.ProPerties 수정
AdvStringGrid1->ControlLook->DropDownAlwaysVisible = true;
2. hasCombobox 이벤트 추가
void __fastcall TForm1::AdvStringGrid2HasComboBox(TObject *Sender,
int ACol, int ARow, bool &HasComboBox)
{
if(ACol == 5 || ACol == 6 || ACol == 7)
{
HasComboBox = true;
}
}
쌩조 님이 쓰신 글 :
: 첨부 파일 보면 Hour//Min//Sec쪽이 Combo 박스를 이용해서 사용하는데 ComboBox가 바로 나타나지는 않고 한번 클릭을 해줘야만 나옵니다.
: 첨부 사진에 Row1은 그냥 직접 0이라는 값을 넣어 둔것입니다.
: // void __fastcall TForm1::AdvStringGrid1GetEditorType(TObject *Sender, int ACol,
: int ARow, TEditorType &AEditor) // 이 이벤트를 이용해서 만들어서 그런것인가요?
: 혹시 방법을 알고 계신분은 도움조 주세요.
|