Как сделать заголовок gridview фиксированным при прокрутке главной страницы ?
Привет
У меня есть проблема с фиксированным заголовком в asp.net с главной страницей
Пожалуйста, посоветуйте мне
Спасибо
Мейден
Что я уже пробовал:
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="card card-darkblue"> <div class="card-header"> <h3 class="card-title"><asp:Label ID="lblaction" runat="server" Text="Property Master"></asp:Label></h3> </div> </div> <asp:UpdatePanel id="UpdatePanel1" runat="server"> <ContentTemplate> <fieldset> <div class="row"> <div class="col-lg-3"> <asp:TextBox ID="txtSearch" runat="server" CssClass="form-control textcolor" placeholder="search"></asp:TextBox> </div> <div class="col-lg-7"> <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-info btnsize" /> <asp:Button ID="btnNew" runat="server" Text="Add" CssClass="btn btn-info btnsize" /> <asp:Button ID="btnEdit" runat="server" Text="Edit" CssClass="btn btn-info btnsize" /> </div> </div> <br /> <div> <div class="row"> <div class="col-lg-12"> <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" PageSize="15"> <Columns> <asp:CommandField ShowSelectButton="True"> <ItemStyle Width="50px" /> </asp:CommandField> <asp:BoundField DataField="id" HeaderText="ID"/> <asp:BoundField DataField="code" HeaderText="Code"/> <asp:BoundField DataField="ProjectCode" HeaderText="Project Code"/> <asp:BoundField DataField="PTNo" HeaderText="PT No"/> <asp:BoundField DataField="LotNo" HeaderText="LotNo"/> <asp:BoundField DataField="Category" HeaderText="Category"/> <asp:BoundField DataField="LandType" HeaderText="Land Type"/> <asp:BoundField DataField="Propertytype" HeaderText="Property Type"/> <asp:BoundField DataField="District" HeaderText="District"/> <asp:BoundField DataField="Measurement_Type" HeaderText=""/> <asp:BoundField DataField="LandArea" HeaderText="Area"/> <asp:BoundField DataField="State" HeaderText="State"/> <asp:BoundField DataField="Status" HeaderText="Status"/> </Columns> <FooterStyle BackColor="White" ForeColor="#000066" /> <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /> <RowStyle ForeColor="#000066" /> <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> <SortedAscendingCellStyle BackColor="#F1F1F1" /> <SortedAscendingHeaderStyle BackColor="#007DBB" /> <SortedDescendingCellStyle BackColor="#CAC9C9" /> <SortedDescendingHeaderStyle BackColor="#00547E" /> </asp:GridView> </div> </div> </fieldset> </ContentTemplate> </asp:UpdatePanel> </asp:Content>