Avatar of K Feening
K Feening
Flag for Australia asked on

asp Gridview vb.net

Hi

I want to fix the Header and row sizes for a asp Gridview

<asp:GridView ID="gvStudent" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" DataSourceID="dsStudent" Style="z-index: 1; left: 37px; top: 101px; position: absolute; height: 511px; width: 561px" AllowPaging="True" ShowHeaderWhenEmpty="True" DataKeyNames="Email" PageSize="15">                
                    <EmptyDataTemplate>
                        <div align="center">No records found.</div>                     </EmptyDataTemplate>                      <HeaderStyle Height="20px" />                                   <Columns>                                                           <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Select" Text="Select">                             <HeaderStyle Width="20px" />                             <ItemStyle Height="20px" />                         </asp:ButtonField>                         <asp:BoundField DataField="FirstN" HeaderText="First Name" SortExpression="FirstN">                             <HeaderStyle HorizontalAlign="Left" />                             <ItemStyle Height="20px" />                         </asp:BoundField>                         <asp:BoundField DataField="SurnN" HeaderText="Surname" SortExpression="SurnN">                             <HeaderStyle HorizontalAlign="Left"/>                             <ItemStyle Height="20px" />                         </asp:BoundField>                         <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" Visible="False">                             <HeaderStyle Height="20px" />                             <ItemStyle Height="20px" />                         </asp:BoundField>                     </Columns>                     <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />                     <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />                     <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />                     <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />                     <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />                     <SortedAscendingCellStyle BackColor="#FFF1D4" />                     <SortedAscendingHeaderStyle BackColor="#B95C30" />                     <SortedDescendingCellStyle BackColor="#F1E5CE" />                     <SortedDescendingHeaderStyle BackColor="#93451F" />                 </asp:GridView>

Open in new window


ASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
Rainer Jeschor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rainer Jeschor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy