解决方案 »

    1.  
    2.  

      有了dbgrid1.options.dgmultiselect:=true;
      必须按下Ctrl键,才能实现多选,
        

       

    3.  

      修改源代码,把以下内容
      if Select and (ssShift in Shift) then
      改为if Select then
        

       

    4.  

      记住是在DBGRIDS单元里:
          if ssCtrl in Shift then //这句改为if true then
      还有把以下这段去掉:
              if ssCtrl in Shift then
                    CurrentRowSelected := not CurrentRowSelected
                  else
                  begin
                    Clear;
                    CurrentRowSelected := True;
                  end;
      改为CurrentRowSelected := not CurrentRowSelected;
        

相关文章:

  • 2021-11-21
  • 2022-01-17
  • 2021-05-31
  • 2022-01-15
  • 2022-12-23
  • 2021-10-03
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2021-09-04
  • 2021-06-18
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案