当cxGrid Gridmode=fasle 时,点击列筛选下拉箭头, 可看到如下:
全部显示
定制过滤
20061101
20061102
........
null
........定制过滤部分为该列已存在记录的清单, 这样便于筛选(如EXCEL)
但如将gridmode设置为true,就看不到已存在的记录,就只有:
全部显示
定制过滤
为空
不为空如何在gridmode=true模式下能保持false的筛选状态?

解决方案 »

  1.   

    这个gridmode=true本身是做什么用的?为什么禁用它?
      

  2.   

    gridmode=true模式下不能排序也不能过滤,你设置了筛选条件也没用
      

  3.   

    Determines whether the data controller works in Grid mode.property GridMode: Boolean;Description
    The GridMode property determines whether the data controller works in Grid mode.  When in Grid mode, the data controller loads a fixed number of dataset records according to the GridModeBufferCount property.In Grid mode, the data controller抯 performance is better, but features such as automatic sorting, filtering and summary calculations are disabled.  You have to write appropriate event handlers (OnSortingChanged, Filter.OnBeforeChange, OnAfterSummary) to perform these actions.  To enable data filtering in grid mode, you can use the AutoDataSetFilter property as well as the OnBeforeChange event.  Setting the AutoDataSetFilter property to True automatically applies the changed filter criteria to the dataset抯 Filter property.  See the AutoDataSetFilter and OnBeforeChange descriptions for more details.Grid mode is automatically switched off when grouping is applied to a grid view. In this case (and also if the GridMode property value is False), the data controller switches to Load All Records mode.  In this mode, all dataset records are loaded to the data controller and automatic sorting, filtering and summary calculations are available.  The SmartRefresh property is also in effect when the data controller is in Load All Records mode
    .Note: if you enable Grid mode for a master/detail relationship, both views must be in Grid mode, else data will not be displayed correctly.The default value of the GridMode property is False.
      

  4.   

    实际上我的需求如下:
    让cxGrid支持某一列单元格多选并按CTRL+D进行复制,就像EXCEL一样;在GridMode模式下实现是容易的,但这GridMode下筛选和排序都不可用;GridMode=false实现比较困难, 不过还好, 我已经解决了这个问题.结贴.