网站公告列表

  没有公告

加入收藏
设为首页
联系站长
您现在的位置: 网络学院 >> 程序设计 >> Delphi编程 >> 文章正文
  dxMemData的过滤            【字体:
dxMemData的过滤
作者:佚名    文章来源:不详    点击数:    更新时间:2007-8-3    
正在装载数据……
 

dxMemData用起来不错,可惜起过滤功能不太好用,从网上找到这篇,试过发现不错.原文地址:

http://tingmusic.spaces.live.com/Blog/cns!61A38A6C1E849E87!678.entry


2007/5/30
How to filter the ExdivssMemData
Description

I tried setting the dxMemData.Filter property to a value and the dxMemData.Filtered property to True. But this has no effect. How can I filter MemData?

Solution

Please note that the ExdivssMemData does not recognize the Filter property. This is the designed behavior. You can use only the OnFilterRecord event handler and filter records with the help of its Accept parameter or form the FilterList manually to filter the ExdivssMemData. And of course you should set the MemData's Filtered property to True. Here is some sample code illustrating the second approach:

[Delphi]

  with dxMemData do
  begin   

DisableControls;   

 try     

 //Clear Filter     

ProgrammedFilter := False;     

Filtered := False;           

 //Create Filter     

ProgrammedFilter := True;
      First;
      while not Eof do
      begin
        if <your condition to a field value> then
          FilterList.Add(Pointer(dxMemData.CurRec + 1));
        Next;
      end;
      Filtered := True;   

finally     

EnableControls;   

end;
  end;
 




本文来源:http://blog.csdn.net/mastersky/archive/2007/07/05/1679953.aspx
站内文章搜索 高级搜索
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
     在delphi中使用xml文档有…
     初探delphi 7 中的插件编…
     delphi 2006(dexter) & …
     获得windows的版本信息。
     “序列号输入助手”源代…
     rs232串口通讯模块
     ado方式下判断数据表是否…
  • 看完了第二遍C++Primer,学习…

  • 内存管理内幕--Jonathan Bar…

  • 使用.net framework 2.0用c#…

  • C++ Meta Programming 和 Bo…

  • C++ Meta Programming 和 Bo…

  • C++ Meta Programming 和 Bo…

  • C++ Meta Programming 和 Bo…

  • Template-Based Classes的用…

  • VB操作XML

  • 程序员成功之路(二) ——The…

  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    网络学院©2007 www.23book.net
    为您提供web编程,vb编程,vc编程,服务器架设管理,数据库设计等方面的知识 站长:David