校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁(yè) > 知識(shí)庫(kù) > ASP.NET 固定標(biāo)題列與欄位的具體實(shí)現(xiàn)

ASP.NET 固定標(biāo)題列與欄位的具體實(shí)現(xiàn)

熱門(mén)標(biāo)簽:地圖標(biāo)注和認(rèn)領(lǐng) 萊蕪?fù)夂綦婁N(xiāo)機(jī)器人價(jià)格 智能電話營(yíng)銷(xiāo)外呼系統(tǒng) 戶(hù)外地圖標(biāo)注軟件手機(jī)哪個(gè)好用 長(zhǎng)春呼叫中心外呼系統(tǒng)哪家好 鄭州400電話辦理 聯(lián)通 電銷(xiāo)語(yǔ)音自動(dòng)機(jī)器人 凱立德導(dǎo)航官網(wǎng)地圖標(biāo)注 五常地圖標(biāo)注

APSX 頁(yè)面代碼: JS

復(fù)制代碼 代碼如下:
      
script src="../Js/jquery-1.8.3.min.js" type="text/javascript">/script>    -
    script src="../Js/jquery-ui-1.10.3.custom.js" type="text/javascript">/script>

    script src="../Js/gridviewScroll.min.js" type="text/javascript">/script>

    link href="../CSS/GridviewScroll.css" rel="stylesheet" type="text/css" />

//以上的文件都可以直接到網(wǎng)上下載的

    script type="text/javascript">

        $(document).ready(function() {
            gridviewScroll();
        });

        function gridviewScroll() {

//  因?yàn)槲业腉RIDVIEW 要放在一個(gè)DIV中所以要獲得對(duì)應(yīng)的高度和寬度,一般直接數(shù)字設(shè)置就好了

            var gridWidth = $("#divservic").width();
            var gridHeight = $("#divservic").height();

            var headerHeight = $("#divHeader").height();

            gridHeight = gridHeight - headerHeight;

            $('#%=GridView2.ClientID%>').gridviewScroll({
            width: gridWidth,//寬度 一定不能用100%  可直接寫(xiě)死
            height: gridHeight,//高度  可以直接寫(xiě)死
            freezesize:4//控制頭幾列不動(dòng)
            });
        }


復(fù)制代碼 代碼如下:

div id="divservic" style="width: 100%;margin-bottom: 2px; height:220px;">

                            asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" Width="100%"
                                BorderColor="#D1DDAA" AllowPaging="True" DataKeyNames="InstallationID"
                                OnPageIndexChanging="GridView2_PageIndexChanging"
                                onrowdatabound="GridView2_RowDataBound"
                                onrowdeleting="GridView2_RowDeleting" AutoGenerateColumns="False"
                                AllowSorting="True" onsorting="GridView2_Sorting">
                                RowStyle CssClass="GridviewScrollItem"  />>-------------------------------------------------------------這里的樣式要添加
                                FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                PagerStyle CssClass="GridviewScrollPager"  />-------------------------------------------------------------這里的樣式要添加
                                SelectedRowStyle BackColor="#C5BBAF"  />
                                HeaderStyle CssClass="GridviewScrollHeader" />-------------------------------------------------------------這里的樣式要添加
                                EditRowStyle BackColor="#7C6F57" />
                                AlternatingRowStyle BackColor="White" BorderColor="#D1DDAA" />
                                Columns>
                                    asp:TemplateField>
                                        ItemTemplate>
                                            asp:CheckBox ID="ckbitem" runat="server" />
                                        /ItemTemplate>

                                    /asp:TemplateField>
                                 asp:BoundField DataField="InstallationID" HeaderText="InstallationID"
                                        SortExpression="InstallationID" />
                                    asp:BoundField DataField="Completed" HeaderText="Completed" />
                                    asp:BoundField DataField="Tid" HeaderText="Tid" />
                                    asp:BoundField DataField="Mid" HeaderText="Mid" />
                                    asp:BoundField DataField="Bank" HeaderText="Bank" />
                                    asp:BoundField DataField="Model" HeaderText="Model" />
                                    asp:BoundField DataField="Barcode" HeaderText="Barcode" />
                                    asp:BoundField DataField="DateReq" HeaderText="DateReq"
                                        SortExpression="DateReq" />

                                /Columns>
                            /asp:GridView>
                         /div>

標(biāo)簽:衢州 西寧 岳陽(yáng) 福州 西藏 宣城 湖州 紅河

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ASP.NET 固定標(biāo)題列與欄位的具體實(shí)現(xiàn)》,本文關(guān)鍵詞  ASP.NET,固定,標(biāo)題,列,與,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《ASP.NET 固定標(biāo)題列與欄位的具體實(shí)現(xiàn)》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于ASP.NET 固定標(biāo)題列與欄位的具體實(shí)現(xiàn)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 台东市| 鄂伦春自治旗| 益阳市| 剑川县| 浦城县| 湘西| 金昌市| 衡山县| 那坡县| 蛟河市| 湖北省| 射洪县| 正阳县| 榆树市| 阿克陶县| 准格尔旗| 彰化县| 兰溪市| 焉耆| 台南市| 西昌市| 贺州市| 黄梅县| 新郑市| 辉南县| 赤水市| 灵宝市| 雷州市| 临夏市| 徐汇区| 长乐市| 涞源县| 海安县| 西充县| 辽阳县| 太湖县| 清新县| 嘉祥县| 三台县| 都昌县| 甘泉县|