views:

21

answers:

1

Hello,

I changed a gridview's header to ... with

    Sub MakeAccessible(ByVal grid As GridView)
    If grid.Rows.Count > 0 Then

        grid.UseAccessibleHeader = True
        grid.HeaderRow.TableSection = TableRowSection.TableHeader
        grid.HeaderRow.CssClass = ""
        'grid.FooterRow.TableSection = TableRowSection.TableFooter
    End If
End Sub

Now I need to add attributes to the th tags like th xyz=boom. How to do so?

Thx a lot for your help and interest...

A: 

Make use of Attributes.Add

Example

e.Row.Cells[1].Attributes.Add("class", "text")
Pranay Rana