I have a gridview
that is contained within a panel. I am trying to make the gridview
fill 100% of the width and height of the panel.
This is what I've attempted so far:
CSS
.pnlGridView {
position:relative;
float:right;
height:40%;
width:40%;
border:6px solid RGB(140,240,2110);
}
.gvDates {
position:relative;
width:100%;
height:100%;
}
HTML
<asp:Panel CssClass="pnlGridView" runat="server"><asp:GridView ID="gvDates" runat="server" OnRowCommand="gvDates_RowCommand" CssClass="gvDates"/></asp:Panel>