

Now my problem is I want to change both Header color as well as Header style. New Font( "Microsoft Sans Serif", 9, FontStyle.Bold)) //Font size!!!!Į.Graphics.DrawString(e.Header.Text, headerFont, Using (StringFormat sf = new StringFormat()) I searched that for changing Header color for a ListView we use: private void listView1_DrawColumnHeader( object sender, DrawListViewColumnHeaderEventArgs e)Į.Graphics.FillRectangle(Brushes.Pink, e.Bounds) Īnd we use the same event for changing Header Style for ListView: private void listView1_DrawColumnHeader( object sender, DrawListViewColumnHeaderEventArgs e)
