Hi,
I think there is no such customization of height in GridView.
You may customize the style of grid in your intire solution by doing
these example:
In your Client page:
Theme="GridSkin" EnableTheming="true"
<head id="Head1" runat="server">
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css" href="Css/GridControlStyle.css" />
</head>
<asp:GridView AutoGenerateColumns="False" ID="grdAuditTrail" runat="server"
SkinID="skinGridView" EmptyDataText="No record.">
<EmptyDataRowStyle ForeColor="White" />
</asp:GridView>
In your Css/GridControlStyle.css
Code inside:
.clsGridHdrSub
{
background-color: #067ef9;
color: White;
font-weight: lighter;
font-family: Verdana;
font-size: xx-small;
border: 0;
text-align: justify;
}
.clsGridEmptyRow
{
background-color: #067ef9;
color: White;
font-weight: 50;
font-family: Candara;
font-size: medium;
border: 0;
}
.clsGridAlternate
{
color:#031999;
font-family:Verdana;
font-weight:lighter;
font-size:xx-small;
background-color:#F0F8FF;
}
.clsGridAlternate:hover
{
color:Teal;
font-family:Verdana;
font-weight:lighter;
font-size:xx-small;
background-color: White;
background-color:#daeeff;
}
.clsGridRow
{
background-color:White;
color:#031999;
font-family:Verdana;
font-weight:lighter;
font-size:xx-small;
}
.clsGridRow:hover
{
color:#031999;
color:Teal;
font-family:Verdana;
font-weight:lighter;
font-size:xx-small;
background-color: White;
background-color:#F0F8FF;
background-color:#daeeff;
}
.clsGridHdr
{
color:#0453A2;
color:White;
font-weight:bold;
font-family:Verdana;
font-size:x-small;
background-repeat: repeat-x;
height: 12px;
padding: 1px 3px 1px 3px;
border: solid 2px Black;
font-variant:small-caps;
background-color:#067ef9;
background-image: url('../Images/gridheader.gif');
background-repeat:repeat-x;
text-decoration: none;
}
.clsGridFtr
{
color:#0453A2;
font-weight:bold;
font-family:Verdana;
font-size:x-small;
background-repeat: repeat-x;
height: 10px;
padding: 1px 3px 1px 3px;
font-variant:small-caps;
text-decoration:underline;
background-color:#f5faff;
}
.clsGridPager
{
color:#067ef9;
font-weight:normal;
font-family: Verdana;
font-size:x-small;
border:0;
text-align:justify;
}
In your App_Themes/GridSkin.skin
Code inside:
<asp:gridview borderwidth="1" bordercolor="White" pagesize="10" allowpaging="True" width="100%" cellpadding="5" xmlns:asp="#unknown">
runat="server" AutoGenerateColumns="false"
skinID="skinGridView">
<rowstyle cssclass="clsGridRow" horizontalalign="Left" />
<emptydatarowstyle cssclass="clsGridEmptyRow" />
<pagerstyle horizontalalign="Center" cssclass="clsGridPager" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle CssClass="clsGridHdr" ForeColor="White" />
<footerstyle cssclass="clsGridFtr" />
<editrowstyle backcolor="#D1DDF1" />
<alternatingrowstyle cssclass="clsGridAlternate" />
</asp:gridview>
Hope this could help...
Do not forget to vote if could help so that others may consider as an answer.
Regards,