更新时间:2023-11-28 13:48:22
Sure, you just need to include thebold
tag to the text.
The below code will set the text in the first rows of the first column to "Hello Ryan", having the word "Ryan" in bold. You just need to put<b>
in front of the text you want to be bold and you must put</b>
at the end of the text that you want to be bold.GridView1.Rows[0].Cells[0].Text = "Hello <b>Ryan</b>";