I have a DataTable with columns typeof(string). I am adding strings to this table and I need to have some of text in bold. My string looks like that:
row["UserData"] = user.Name + "\n" + user.Description + "\n" + user.Number + "\t" + user.Date;
Is it possible to make user.Name in this code bold?
I am using .NET 4.0 and WPF.
Strings are just text, if you want to format text you have multiple ways of doing so but i do not know of anything “native”. e.g. use XML markup around
user.Nameto encode the formatting as text, that then can be used by some control which displays it to adjust the rendering.