zoukankan      html  css  js  c++  java
  • dev 从表处理

    从表列名,从表选中行和主表选中一样,var selectrow = detailView.GetRow(detailView.FocusedRowHandle) as obj;

    private void gridView1_MasterRowExpanded(object sender, DevExpress.XtraGrid.Views.Grid.CustomMasterRowEventArgs e)
            {
                detailView = gridView1.GetDetailView(e.RowHandle, e.RelationIndex) as DevExpress.XtraGrid.Views.Grid.GridView;
                if (detailView != null)
                {
                    //detailView.CustomDrawRowIndicator += gridView1_CustomDrawRowIndicator;
                    //detailView.Columns["Name"].Caption = "姓名";
                    //detailView.Columns["No"].Caption = "编码";
    
                    detailView.RowCellStyle += gridView1_RowCellStyle;
    
    
                    //detailView.GroupPanelText = "明细喂喂喂";
                    //detailView.ChildGridLevelName = "明细喂喂喂";
                    //detailView.VertScrollTipFieldName = "明细喂喂喂";
                    //detailView.ViewCaption = "明细喂喂喂";
                    //detailView就是子View。设置VID 列为隐藏 detailView.BestFitColumns(); 
                }
            }
  • 相关阅读:
    URAL 1018 Binary Apple Tree
    URAL 1029 Ministry
    URAL 1039 Anniversary Party
    URAL 1078 Segments
    Codeforces 918D
    Codeforces 918C
    URAL 1495 One-two, One-two 2
    URAL 1244 Gentlemen
    URAL 1658 Sum of Digits
    URAL 1081 Binary Lexicographic Sequence
  • 原文地址:https://www.cnblogs.com/shuaimeng/p/11990248.html
Copyright © 2011-2022 走看看