Delphi Filter Help for TcxDBBandedGrid

This filter code WOULD work if I was using a regular DBgrid... what do I need to change to get it to work on my DB banded grid?


with gvMilling.DataController.Filter do begin
          Clear;
          Root.BoolOperatorKind := fboAND;
          AddItem(Root,gvMillingJobSchedule,foGreaterEqual, '0', 'Department Start Range');
          fci := Root.AddItemList(fboOR);
          fci.AddItem(Root,gvMillingMil_Total_PercentComplete, foLess, '1', '100%');
          fci.AddItem(Root,gvMillingHoursPerJob, foGreater, '0', 'Not Blank');
          Active := True;
          end;

Open in new window

Norm-alNetwork EngineerAsked:
Who is Participating?
 
Norm-alConnect With a Mentor Network EngineerAuthor Commented:
Nevermind... figured it out myself!

       with gvMilling.DataController.Filter do begin
          Clear;
          Root.BoolOperatorKind := fboOR;
          AddItem(Root,gvMillingJobSchedule,foGreaterEqual, '0', 'Department Start Range');
          fci := Root.AddItemList(fboAND);
          fci.AddItem(gvMillingMil_Total_PercentComplete, foLess, '1', '100%');
          fci.AddItem(gvMillingHoursPerJob, foGreater, '0', 'Not Blank');
          Active := True;
          end;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.