Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Group Gridview Data and bold 1st line of new item type

I have a gridview that displays results which I'd like to bold the first line of each now type of item

EG

See the below file.  The highlighted yellow lines show the 1rst line of each new unit.

How can I do this by Bolding or coloring the first row of each new data item in my grid view.

I thought somthing allong the lines

Sub doColor(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
   Select Case e.Row.Cells(0).Text 
      Case   "A" 
         e.Row.BackColor = Drawing.Color.Blue
      Case "B"
         e.Row.BackColor = Drawing.Color.Green   ' etc.......
   End Select
End If
End Sub

Open in new window



 User generated image
ASKER CERTIFIED SOLUTION
Avatar of jitendra patil
jitendra patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial