RT。用ado连接(sql server)

解决方案 »

  1.   

    到汇总数据直接用第三方近控件如:dbgrideh或dxgrid挺好用的。修改,删除行,添加记录等操作? 直接在dbgrid就可以修改啊!看一下你的dataset的属性是否允许修修
      

  2.   

    autoedit: true
    enabled:true
    还有其它的么?
    要在代码中添加什么语句么?
    比如就像vf中到最后一条记录时,直接点方向键下就可以添加记录了。删除直接点‘delete’键。
      

  3.   

    在delphi 菜单下component-->install package--->add 就可以,按提示操作就可以了,按上包后,该包包括的控件会自动安装。
      

  4.   

    以EhLib的安装为例:(可到盒子下载:http://www.delphibox.com/article.asp?articleid=1127)先把Delphi7目录中的文件全部拷到Common目录,然后把Common单独拷到另外的地方,在delphi中File->Open打开EhLib70.Dpk,在出现的窗口中按Compile,然后再File->Open打开DclEhLib70.Dpk,Compile->Install,最后在Tools->Environment Options->Library->Library path中设置Common目录在硬盘上的路径,就搞定了!英文说明如下:
    Uninstall previous or evaluation version of EhLib (Old version) from Delphi 
    IDE. Remove or copy to other directory files of old version to prevent 
    crossing old and new version of EhLib (Including EhLib.bpl, EhLib.dcp or 
    EhLibXX.bpl, EhLibXX.dcp files). Create directory from which you will install EhLib library 
    ('EhLib directory') (for example, C:\Delphi[X]\EhLib).Copy files from Common and Delphi[X] directories of the EhLib archive
    to 'EhLib directory'.Use "File\Open..." menu item of Delphi IDE to open the runtime package - 
    EhLibXX.Dpk.
    In "Package..." window click "Compile" button to compile the package.By default Delphi (5, 6 and 7) place compiled EhLibXX.BPL file to the 
    <Delphi path>\Projects\Bpl directory and this directory already present 
    in the search PATH. But if you overwrite default BPL directory then you need
    put compiled EhLibXX.BPL file into directory that is accessible 
    through the search PATH (i.e. DOS "PATH" environment variable; for example, 
    in the Windows\System directory).Add, (if needed) 'EhLib directory' in Tools->Environment Options->Library->
    Library Path.After compiling run-time package you must install design-time
    package DclEhLibXX.BPL into the IDE.Use "File\Open..." menu item to open design-time package DclEhLibXX.Dpk.
    In "Package..." window click "Compile" button to compile the package
    and then click "Install" button to register EhLib components on
    the component palette. EhLib components have to appear on 'EhLib' page of components palette.
      

  5.   

    当下来dbgrideh包,双击dpk文件,就可以自动启动delphi安装了。安装完了以后在datacontrol可以找到它们:)至于控制记录的增删查改,用ADO的delete, append, edit等等就可以了。
      

  6.   

    调用ADO,连接数据表!
    对ADO进行增加,删除,修改操作就可以!
    汇总使用union all语句!
    首先做sql将所有数据列出,
    在建立SQL语句,作出汇总数据使用(sum)
    将这辆个SQL语句使用UNION ALL链接,OK!
      

  7.   

    怎么用dbgrideh在最后一行做出汇总?
      

  8.   

    最后一行汇总我想可以用一个SQL查询,把查询结果插入到DBGRID里,退出的时候再把最后一条记录删除!这样也费不了多少力气
      

  9.   

    方法很多,用Clientdataset之类的东西都可以,但以楼主的水平,估计有的搞