Files to look at:
- CustomEdit.cs (VB: CustomEdit.vb)
- CustomEditViewInfo.cs (VB: CustomEditViewInfo.vb)
- RepositoryItemCustomEdit.cs (VB: RepositoryItemCustomEdit.vb)
- Form1.cs (VB: Form1.vb)
- Invoice.cs (VB: Invoice.vb)
- Program.cs (VB: Program.vb)
Since RichEdit may contain large amounts of content, highlighting substrings may affect application performance; which is why, by default, RichEdit doesn't highlight search strings instances. In any case, Rich content includes undisplayed markup characters and the Grid includes these in the search. This example illustrates how to implement the intended functionality. It uses the Grid custom painting events to highlight a matched string and a custom RichEdit to obtain the text without markup.