Jump to content
Sign in to follow this  
DrShepard

DropDownForm for STFilter (EhLib)

Recommended Posts

Hello! I need to set DropDownForm for MyDBGridEh.Columns[3].STFilter. My grid has 4 columns, but only one column needs to have its stfilter changed.
So I created a new class

type
  TExtSTColumnFilterEh = class (TSTColumnFilterEh)
  public
    property DropDownFormParams: TDropDownFormCallParamsEh read FDropDownFormParams write FDropDownFormParams;
  end;

How can I changed STFilter on my third column? I tried it like this
 

procedure TMainForm.FormCreate(Sender: TObject);
begin
  MainGrid.Columns[3].STFilter.Free;
  MainGrid.Columns[3].STFilter := TExtSTColumnFilterEh.Create(MainGrid.Columns[3]);
  TExtSTColumnFilterEh(MainGrid.Columns[3].STFilter).DropDownFormParams.DropDownForm := LVDropDownForm;
end;

But DropDownForm doesn't appear. 
I will be glad to receive any advice and ideas.
I'm using grid from EhLib 9.3 library.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×