Can I do something like this in listview??
1 | foo | bar12 | x |
2 | foo | 32bar | y |
I want to bold particular word 'bar' in this case.
Is it possible in the listview, or is there any alternative to make it work?
Can I do something like this in listview??
1 | foo | bar12 | x |
2 | foo | 32bar | y |
I want to bold particular word 'bar' in this case.
Is it possible in the listview, or is there any alternative to make it work?
This may be useful to you...
Dim item1 As New ListViewItem
item1.Text = "Item 1 BOLD"
item1.UseItemStyleForSubItems = False 'Set this to FALSE to allow changing the subitem font. It is TRUE by default.
item1.Font = New Font(ListView1.Font, FontStyle.Bold)
item1.SubItems.Add("Sub Item Normal")
item1.SubItems(1).Font = New Font(ListView1.Font, FontStyle.Regular)
ListView1.Items.Add(item1)