过滤条件,无需经过过滤界面,不知是否可行?
-----------------------------------------------
可行.
回答完毕 呵呵devexpress跟进源码, 找到文件代入点, 自己改写一下.
-----------------------------------------------
可行.
回答完毕 呵呵devexpress跟进源码, 找到文件代入点, 自己改写一下.
解决方案 »
- 郁闷,求解决方案。
- delphi的变量跟踪
- 求助!哪位大侠知道在delphi中如何获得一个文本的创建时间?
- 诚聘兼职或全职DELPHI程序员(上海)
- 急求~!~
- 急切的盼望您的指教--高分请教毕业论文的写法
- 关于让图象随时间滚动的问题
- 如何在bpl窗体中调用主窗体上的对象
- 怎样通过程序设置条码打印机当前打印温度
- 老是出现project xxx.exe raised exception classEDatabaseError with message'missing connection or connectionstring'.....,
- delphi 能依据网卡地址 MAC 编程吗?
- 一个程序已运行了,叫project1,有两个edit,如何求得edit的输入值啊!在线等,具体大师
cxFilterControlDialog.pas, cxFilterControlDialog.dfm, cxGridCustomTableView.pas;
2 修改cxFilterControlDialog.pas// Added by Simon 2013/9/4 10:05:13
//声明 全局
function cxInternalExecuteFilterControlDialogEx(ALink: TComponent; const AFileName : string): Boolean;
//实现
function cxInternalExecuteFilterControlDialogEx(ALink: TComponent; const AFileName : string): Boolean;
var
AForm: TfmFilterControlDialog;
AIntf: IcxFilterControlDialog;
begin
AForm := TfmFilterControlDialog.Create(Application);
with AForm do
try
FFilterControl := TcxFilterControl.Create(nil); if Supports(TObject(FFilterControl), IcxFilterControlDialog, AIntf) then
AIntf.SetDialogLinkComponent(ALink);
AIntf := nil; //force to clear interface FilterControl.LoadFromFile(AFileName);
SetTitle(AFileName); FilterControl.ApplyFilter;
Result := True;
finally
FFilterControl.Free;
Free;
end;
end;修改cxGridCustomTableView.pas//TcxCustomGridTableFiltering public 声明
procedure LoadFilterFile(const AFileName : string);//实现
procedure TcxCustomGridTableFiltering.LoadFilterFile(const AFileName : string);
begin
if not GridView.DoFilterCustomization then
cxInternalExecuteFilterControlDialogEx(GridView, AFileName);
end;界面调用
//tv1 : TcxGridBandedTableView
tv1.DataController.Filter.Active := True;
tv1.Filtering.LoadFilterFile('c:\2.flt');