zoukankan      html  css  js  c++  java
  • cxGrid 增加序号 (非数据库绑定模式) (测试通过)

    cxGrid 增加序号 (非数据库绑定模式)

    -----------------------------------

    1. 选在 adoQuery 控件 , 鼠标右键菜单中 选择 Fields Editor

    2. 在  adoQuery 控件 Fields Editor 中 鼠标右键菜单  (1)  Add all fields  

                                                                           (2)  New field  --->  Name ==>  curRowNo 

                                                     Type    ==>  String 

                                                                                                  field Type ==>  Calculated

    3. adoQuery 控件 Fields Editor 中 选择 新怎的字段  curRowNo,  GetText 事件 插入如下代码 OK

    procedure Tfxxxx.adoQuery1curRowNoGetText(Sender: TField; var Text: string; DisplayText: Boolean);
    begin
    inherited;
      text:=inttostr(adoQuery1.RecNo);
    end

                                                              

  • 相关阅读:
    140704
    140703
    140702
    堆排序
    并查集
    140701
    这年暑假集训-140630
    vim for python
    hihocode 第九十二周 数论一·Miller-Rabin质数测试
    hdu 3157 Crazy Circuits 有源汇和下界的最小费用流
  • 原文地址:https://www.cnblogs.com/m0488/p/3833407.html
Copyright © 2011-2022 走看看