BCB-兩個StringGrid 同步滾動

void __fastcall TForm1::StringGrid1TopLeftChanged(TObject *Sender)

{

  StringGrid2->TopRow = StringGrid1->TopRow;

  StringGrid2->LeftCol = StringGrid1->LeftCol;

}

相关文章