zoukankan      html  css  js  c++  java
  • ASPxGridView的自动排序(写在onCustomUnboundColumnData()事件中)

    //此排序写于后台,可打印出序号 

    protected void ASPxGridView_progoods_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)

            {

                if (e.Column.FieldName == "NO" && e.IsGetData)

                    e.Value = (e.ListSourceRowIndex + 1).ToString();

              

            }

    //此排序只girivew中,不能打印出来

    <Columns>
    <dx:GridViewDataTextColumn Caption="序号" VisibleIndex="0" Width="1%">
    <EditFormSettings Visible="False" />
    <CellStyle HorizontalAlign="Center"></CellStyle>
    <DataItemTemplate>
    <dx:ASPxLabel ID="L_rowid_1" runat="server" Text='<%# Container.ItemIndex + 1 %>'>
    </dx:ASPxLabel>
    </DataItemTemplate>
    </dx:GridViewDataTextColumn>

    </Columns>

    我还是会相信,星星会说话,石头会开花,穿过夏天的栅栏和冬天的风雪过后,你终会抵达。
  • 相关阅读:
    Flutter页面-基础Widget
    Data 方法、异常与类
    kafka手动设置offset
    centos 安装ftp服务BUG
    定时任务
    Java垃圾收集算法
    ByteBuffer数据结构
    HelloWorldDynamic
    HelloWorld
    sql技巧(增册改查)
  • 原文地址:https://www.cnblogs.com/dfxyw/p/5080097.html
Copyright © 2011-2022 走看看