views:

21

answers:

0

I wanted to know if it is possible to highlight text inside a WPF toolkit datagrid. My aim is to mimic the ctrl+f find functionality of internet explorer inside a DataGrid. With each click of find, the next instance of the searched keyword should be highlighted.

This is the best I have seen on the net. http://blogs.microsoft.co.il/blogs/tomershamam/archive/2009/08/27/wpf-datagrid-search-and-highlight.aspx

But the cell is being highlighted, What i want to know is that is it possible to highlight only the keyword that is used to search and not the whole cell. Can someone kindly tell me how to approach this problem if it is possible. I have achieved the same effect with a ListView in WPF but i need the cells to be editable too.