本文介绍了为什么更新面板会更改Gridview的PagerStyle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有pagerstyle的网格视图< cssclass>

如果你点击新页面索引更新面板更改了这个css类。

I have a gridview with pagerstyle <cssclass>
İf you click new page index update panel changes this css class.

<div class="row">
    <div class="col-lg-1">
    </div>
    <div class="col-lg-4">
        <div class="list-group ">
            <ul><li class="list-group-item "><span class="badge">GM</span>Yetki Seviyesi </li></ul>
        </div>
    </div>
    <div class="col-lg-7"></div>
</div>
<div class="row">
    <div class="col-lg-1"></div>
    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <contenttemplate>
            <div class="col-lg-10">

                <asp:GridView ID="GridView13" Caption="Onay Takip" runat="server" CssClass="table table-hover able-bordered table-condensed table-striped" AutoGenerateColumns="False" GridLines="None" AllowPaging="True" DataSourceID="XmlDataOnayTakip">
                    <columns>
                        <asp:BoundField DataField="Tarih" HeaderText="Tarih" SortExpression="Tarih">
                        <asp:BoundField DataField="Islem_sahibi" HeaderText="İşlem Sahibi" SortExpression="Islem_sahibi">
                        <asp:BoundField DataField="Adim" HeaderText="Adım" SortExpression="Adim">
                        <asp:BoundField DataField="Islem" HeaderText="İşlem" SortExpression="Islem">
                        <asp:BoundField DataField="Son_Durum" HeaderText="Son Durum" SortExpression="Son_Durum">
                        <asp:BoundField DataField="Aciklama" HeaderText="Açıklama" SortExpression="Aciklama">
                        <asp:BoundField DataField="Ad_Unvan" HeaderText="Ad Ünvan" SortExpression="Ad_Unvan">
                    </columns>
                    <pagerstyle cssclass="bs-pagination" />
                    <rowstyle cssclass="td" />

                <asp:XmlDataSource runat="server" ID="XmlDataOnayTakip" DataFile="~/App_Data/Onay_takip.xml">

            </div>
        </contenttemplate>

    <asp:UpdateProgress ID="UpdateProgress2" runat="server">
        <progresstemplate>
            <img src="Contents/img/loading.gif" alt="Yükleniyor...!" />
        </progresstemplate>

    <div class="col-lg-1"></div>
</div>

推荐答案

这篇关于为什么更新面板会更改Gridview的PagerStyle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 12:17