使用wpf在datagrid中使用固定搜索行的可滚动gridview [英] scrollable gridview with fixed searched row in datagrid using wpf
问题描述
我试图实现一个查找功能,用户可以在文本框中输入一个值(网格外),然后单击一个按钮以查找与搜索条件相匹配的行。
如果在gridview中发现搜索项目,那么搜索记录已经固定在gridview的顶部,剩余的记录可以滚动,除了搜索到的记录。我需要在wpf中显示这个标准。任何一个建议我...
预先感谢您。
如果你想正确地做到这是一个难题。
对于冻结行,请参阅:
http://blogs.msdn.com/b/vinsibal/archive/2008/10/31/wpf-datagrid-frozen-row-sample.aspx
I'm trying to implement a "find" feature where the user can enter a value in a textbox (outside of the grid) then click a button to find the row that matches the search criteria. if the search item is found in the gridview that searched record has been fixed at top of the gridview and the remaining records are scrollable except the searched record . i need to show this criteria in wpf .please any one suggest me...
Thank you in advance..
It's a hard problem if you want to do it correctly. For freezing rows, see this: http://blogs.msdn.com/b/vinsibal/archive/2008/10/31/wpf-datagrid-frozen-row-sample.aspx
这篇关于使用wpf在datagrid中使用固定搜索行的可滚动gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!