I have 3 small images being displayed in my GridView. One image is too tall for a row and so the row height is bigger then I would like it to be. Of course CSS is the answer. And before the adapters, I had a solution that worked (shorten for your viewing pleasure).
<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" OnRowDataBound="GridView1_RowDataBound" EnableViewState="false" CssClass="GridView">
<Columns>
<asp:ImageField ... ControlStyle-CssClass="GridView-ControlStyle" />
This creates a nice tag like <img class="GridView-ControlStyle" ... />
But when I switched to the adapters, my ControlStyle CSS specification was lost. I tried doing something like
.GridView table tbody tr td image
{
height:32px;
}
but this doesn't work because I have other images in other columns of the GridView.
So is there a solution to this? Is this a bug? Or am I missing something?
Thanks.