Good Day,
According to current Find Panel documentation "When searching, a grid control filters records, displaying only those that contain the entered search string". But I does not in my case.
Found this article https://www.devexpress.com/Support/Center/Example/Details/E2801. CustomRowFilter event is not being handled in my grid.
Please help.
Hi Anatoliy,
I have checked the How to customize the default Find Panel filtering algorithm example and it works fine on my side. Would you please modify the example or create a simple project to illustrate the problem? We will do our best to provide you with an appropriate solution. I hope to hear from you soon.
Thanks Alisher!
I've tried to make custom filtering as described in E2801. And it looks like CustomRowFilter event is not being fired. I noticed "The CustomRowFilter event is not supported in Server Mode" note in https://documentation.devexpress.com/#WindowsForms/DevExpressXtraGridViewsBaseColumnView_CustomRowFiltertopic. And my grid works in Server Mode, im using XPO as data source.
If filtering via Find Panel is not available out of the box, may be you can advice me solution not based on CustomRowFilter handling. And if not, may be it is possible to focus first row that satisfies my search instead of filtering.
Hi Anatoliy,
You're right, the CustomRowFilter event is not supported in Server Mode. The best solution in this case is to filter data at the data source level and then assign the filtering result as a data source to the GridControl.
I hope you find this information helpful. Let me know if you have additional questions.
Hi Alisher,
You wrote "The best solution in this case is to filter data at the data source level". Im using XPInstantFeedbackSource. If I understood you correctly I need to
If this is the best solution its hard to imagine how will look the worst. All I need is just to make invisible all rows which cells were not highlighted. Can I do this?
Hi Anatoliy,
It appears that I misunderstand the issue you described. I apologize for this. Your last reply makes the situation clearer. From what I gather, the issue is that GridControl FindPanel highlights, but not filters records. If so, I just checked our Instant Feedback demo and the filtering works fine in it.
So, I suppose that the issue may occur due to the specifics of your project. Would you please turn on the CLR exceptions (Control+D, E combination, and then check the CLR exceptions check box) in order to see if the application throws them. Also provide us with the SQL profiler log so we can examine it.
Please keep me posted.
Hi Alisher,
Thanks for support. Looks like result of misunderstanding is my weak description of the problem, sorry. Profiler log with some explanation is in my next private comment.