604
社区成员
发帖
与我相关
我的任务
分享
void __fastcall TForm2::StringGrid1KeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
if( Key == VK_DOWN && StringGrid1->Row<StringGrid1->RowCount-1 )
{
this->StringGrid1->Row++;
Key = 0;//如果没有这句话,就会下跳2条
}
}