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;
     
  • 相关阅读:
    对于 redux 的一些理解-1.基础
    css 优化
    HTML 理解标签
    css 理解盒模型
    json2.js JSON解析程序
    DOM 核心
    居中
    Director.js
    jquery-2.0.3 源码分析 整体架构
    Zookeeper安装
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/8962414.html
Copyright © 2011-2022 走看看