First the problem I am trying to solve: gridview's SearchRow by default uses "Contains" for GridViewTextBoxColumns. I need to change this to "Starts With"
I searched the KB and found this article: https://docs.telerik.com/devtools/winforms/knowledge-base/starts-with-search-in-radgridview and its ALMOST perfect!
It was VERY easy to implement and it works...sort of :(
Ok so it works "sort of" and you get only the rows that "Start With" that match whatever you typed into the Search Row (I have AutomaticallySelectFirstResult = True.)
Now click the "next" or "previous" button on the search row...nothing happens or rather it happens in the blink of an eye: The first row that matches is selected from the search. Click Next and it deselects that first row...and then reselects it. If you click the "Previous" button it will in fact jump to the very last match. Click it again and it clears the selection, and re-selects the same row. It does not crawl through the collection of found results :(
The expected behavior would be the grid selects the next row when you click the "Next" button. Click this again and again the grid should select the next row that matches and so on. Same for the "Previous" button only in reverse. Finding a solution to this is my immediate problem.
More on the "Sort of" working new custom search - what the article describes is creating a class called "CustomSearchRow" and there's an overridden method contained within called "MatchesSearchCriteria" and this returns a Boolean that if the cell "StartsWith" returns True and False otherwise...here's why I say it "Sort of" works: If you have a cell with "All Good People" and you search for "P" it WILL find this...that cell does NOT start with "P", it starts with "A" and should NOT be found. If anyone knows a way around this your help would terrific!
-Curtis