Using Visual Studio 2019 and Winforms. I have a hierarchical radgridview with my own search function. How can I change the yellow color when the search has found what was requested? I've been working with Visual Style Builder to try to find this but have had no luck. Thanks.
You can try setting the radGridView1.TableElement.SearchHighlightColor property to change the color of the found match results. You can check the Search Row help article where this is mentioned.
Give this property a try and let me know how it goes.
Regards,
Dinko
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thanks. That changed the highlight for the parent but not the child. How do I change the background color on the child?
Dinko | Tech Support Engineer
Telerik team
commented on 24 Mar 2022, 08:53 AM
In this case, you can subscribe to the ViewCellFormatting event handler and check if the CellElement property from the event arguments is GridDetailViewCellElement. If yes, set the GridDetailViewCellElement.ChildTableElement.SearchHighlightColor property to the desired color.
If (TypeOf e.CellElement Is GridDetailViewCellElement) Then
Dim cell As GridDetailViewCellElement = CType(e.CellElement, GridDetailViewCellElement)
cell.ChildTableElement.SearchHighlightColor = Color.LightGreen
End If