OnSelectCell 이벤트를 사용하면 됩니다.
void __fastcall TForm1::StringGrid1SelectCell(TObject *Sender, int ACol, int ARow, bool &CanSelect)
{
Edit1->Text = StringGrid1->Cells[ACol][ARow] ;
}
StringGrid 사용에 대해 참고할 만한 사이트 주소 입니다.
도움이 될만한 내용이 많이 있습니다.
https://www.functionx.com/cppbuilder/controls/grids.htm
코린이 님이 쓰신 글 :
: 마우스로 1 선택하면 2에 나타나게 하고싶은데
: 명령어를 어떻게 써야될까여? |