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>

    我还是会相信,星星会说话,石头会开花,穿过夏天的栅栏和冬天的风雪过后,你终会抵达。
  • 相关阅读:
    HRBUST--2317 Game(完全背包)
    k8s的回滚应用
    python练习-2
    k8s HA 补充-(keepalived+haproxy配置)
    Etcd故障恢复记录
    kubernetes 1.14安装部署helm插件
    k8s Prometheus+CAdvisor+node_export+grafana
    k8s ingress部署
    k8s pvc
    k8s pv
  • 原文地址:https://www.cnblogs.com/dfxyw/p/5080097.html
Copyright © 2011-2022 走看看