Hello,
I created a GridView with the class "PrettyGridView":
Private Sub gvTags_Init(ByVal sender As Object, ByVal e As EventArgs) Handles gvTags.Init
With gvTags
.AllowPaging = True
.AllowSorting = True
.AutoGenerateColumns = True
.CssClass = "PrettyGridView"
.DataKeyNames = New String() {"TagId"}
.DataSource = ldsTags
.ID = "gvTags"
.ShowFooter = True
.ShowHeader = True
End With
End Sub ' gvTags_Init
I am using the CSS Friendly Adapters from CodePlex.
I get the following rendered code:
<div class="AspNet-GridView" id="gvTags">
<table summary="" class="PrettyGridView" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col">
</th>
<th scope="col">
</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
</td>
<td>
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
Tag 01
</td>
This seems wrong!
Why is my CSSClass PrettyGridView applied to the table instead of being applied to a DIV, as in:
http://www.asp.net/CSSAdapters/GridView.aspx
I am using the following CSS Class which is not working:
.PrettyGridView .AspNet-GridView
{
color: #606060;
font: normal 0.7em verdana,arial,helvetica,sans-serif;
width: 100%;
}
Could someone please help me out?
Thanks,
Miguel