zoukankan      html  css  js  c++  java
  • unidbgrid列排序

    unidbgrid列排序

    1)指定列的.sortable:=true;

    2)unidbgrid.columnsort事件添加如下代码:

    if SameText(Column.FieldName, 'IND_SRC_CODE') then
            begin
              if Direction then
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' asc'
              else
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' desc'
            end;

    if SameText(Column.FieldName, 'IND_SRC_NAME') then
            begin
              if Direction then
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' asc'
              else
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' desc'
            end;
    if SameText(Column.FieldName, 'RASH_TYPE') then
            begin
              if Direction then
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' asc'
              else
                IndSourceQuery.IndexFieldNames := Column.FieldName + ' desc'
            end;
     
  • 相关阅读:
    数据持久化的基础知识
    svn常用命令
    关于SVN 目录结构
    linux查看CPU信息
    一个服务器上启动两台tomcat
    centos6.0 配置SVN
    mysql插入表情
    MAC 安装 PIL
    安装freetype
    Hadoop基本文件命令
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/8962414.html
Copyright © 2011-2022 走看看