zoukankan      html  css  js  c++  java
  • DevExpressPivotCustomSort

    private void pivotGrid_CustomFieldSort(object sender, PivotGridCustomFieldSortEventArgs e)
    {
        if (e.Field.FieldName == "MONTH")
        {
                    if (e.Value1 == null || e.Value2 == null) return;
                    e.Handled = true;
                    DateTime d1 = Convert.ToDateTime("1 " + e.Value1.ToString() + " 1900");
                    DateTime d2 = Convert.ToDateTime("1 " + e.Value2.ToString() + " 1900");
                    if (d1 > d2)
                        e.Result = 1;
                    else if (d1 == d2)
                        e.Result = 0;
                    else
                        e.Result = -1;
        }
    }
  • 相关阅读:
    qq
    qqq
    q
    .json文件
    q
    q
    q
    找jar包的网址
    1qq
    day18(JDBC事务&连接池介绍&DBUtils工具介绍&BaseServlet作用)
  • 原文地址:https://www.cnblogs.com/grj001/p/12224049.html
Copyright © 2011-2022 走看看