[英]how to implement text search functionality like report viewer control search in gridview?
Kindly let me know how can i implement the search functionality on a gridview the one same like in report viewer control that takes you to the searched text.请告诉我如何在 gridview 上实现搜索功能,就像在报告查看器控件中一样,将您带到搜索的文本。
I have searched a lot, but no luck.我搜索了很多,但没有运气。
Any suggestion is welcome.Just need to be pointed in the correct direction.欢迎任何建议。只需要指出正确的方向。
UPDATE
更新
Also i just had a quick idea looking at the browsers search, example: press ctrl+f and the browsers find tab appears, works the exact way i want it to.此外,我刚刚快速了解浏览器搜索,例如:按 ctrl+f 和浏览器查找选项卡出现,完全按照我想要的方式工作。 Can i force it to appears on the page, when using the website?
使用网站时,我可以强制它出现在页面上吗? OR implement it in the code something like that?
或者在类似的代码中实现它?
Thank you谢谢
Take a look at the link for quick start: http://ev.net.com.au/gridview-with-highlighted-search-results/查看快速入门链接: http://ev.net.com.au/gridview-with-highlighted-search-results/
You can also see the following link:您还可以查看以下链接:
http://www.codeproject.com/Articles/43018/ASP.NET-GridView-with-search-option-SearchableGrid http://www.codeproject.com/Articles/43018/ASP.NET-GridView-with-search-option-SearchableGrid
Thanks.谢谢。
The best solution i can think of so far is to run the browser search functionality, CTRL +F.And the search in there works best like a report viewer control going into the gridview and finding out the information for me.到目前为止,我能想到的最佳解决方案是运行浏览器搜索功能,CTRL + F。其中的搜索效果最好,就像报表查看器控件进入 gridview 并为我查找信息一样。 To me it suited best for my requirements.Still interested to know of any other solution.
对我来说,它最适合我的要求。仍然有兴趣了解任何其他解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.