Page 1 of 1

TCrDbGrid: which event is fired when the user set a filter?

Posted: Mon 06 Feb 2006 14:14
by Guest
Hi,
I can't find a way to know when the user filters the dataset via TCrDbGrid.

I have one object in the form for each record in the dataset, so I need to hide or destroy some according on user filter.

Which event is fired?

Thank You,

Geppo Darkson.

Posted: Thu 09 Feb 2006 13:58
by Challenger
CRGrid has no event to handle this situation. CRGrid doesn't filter records by itself. It either sets Filter property of DataSet (if the LocalFilter option is set to True) or sets the FilterSQL property if you use TOraTable, TOraQuery or TOraSmartQuery.