C# Datagrid font

  • Thread starter Thread starter PH
  • Start date Start date
P

PH

In a web-based datagrid I am returning a list of numbers. This list is
based on a search query I run. What I want to do is the following:

search string is "001"

datagrid will show query results of anything having a 001 in it;

900125
763001
001876
765001

Is there a way to change the font of JUST the 001 part of the string
in the datagrid cell? so in the above example 763 will be black and
001 will be red. Thanks.

PT
 
Hi,

You would have to create your own datagrid textbox column and write
your own code for the paint event.

Ken
 
Back
Top