I am using the following sub in VB.Net to group data in a Windows Forms ListView.
Passing the data to sub from MySql query. I have been able to group the data by Employee Number - Name as shown in the image below:
My question is How to Make the header stand out more.
The first header 474 Blake, Jorge font is Too small -- have not been able to figure out how to make bigger or possibly Bold it. I have tried making the text size within the ListView object bigger but has no effect on the grouping text size.
Let me know how to resolve
Thanks - Dan
Public Sub GroupByEmpNo(ByVal lstV As System.Windows.Forms.ListView, ByVal SubItemIndex As Int16)
Dim flag As Boolean = True For Each l As ListViewItem In lstV.Items Dim strmyGroupname As String = l.SubItems(SubItemIndex).Text For Each lvg As ListViewGroup In lstV.Groups If lvg.Name = strmyGroupname Then l.Group = lvg flag = False End If Next If flag = True Then Dim lstGrp As New ListViewGroup(strmyGroupname, strmyGroupname) lstV.Groups.Add(lstGrp) l.Group = lstGrp End If flag = True Next End Sub