Q&A

  • 디비그리드(dbgrid)에서 멀티(다중)선택(multi sel) 여부알기
query component   afterscroll

     DBGrid1.DataSource.DataSet.DisableControls;

     WITH  DBGrid1.SelectedRows  DO  BEGIN
           IF   COUNT  > 0  then
                SpeedButton1.Enabled := True
           ELSE SpeedButton1.Enabled := False;
     END;   //  WITH  DBGrid1.SelectedRows  DO  BEGIN

     DBGrid1.DataSource.DataSet.enableControls;
0  COMMENTS