zoukankan      html  css  js  c++  java
  • DGV初始化列

     List<GridColumn> colList = new List<GridColumn>();
                colList.Add(new GridColumn() { Caption = "设备编码", Field = nameof(DicDvc.DvcCode), DataType = typeof(string), Width = 100 });
                colList.Add(new GridColumn() { Caption = "设备名称", Field = nameof(DicDvc.DvcName), DataType = typeof(string), Width = 200 });
                colList.Add(new GridColumn() { Caption = "生产商", Field = nameof(DicDvc.DvcMfrName), DataType = typeof(string), Width = 100 });
                colList.Add(new GridColumn() { Caption = "规格", Field = nameof(DicDvc.DvcStd), DataType = typeof(string), Width = 100 });
                colList.Add(new GridColumn() { Caption = "所属单位", Field = nameof(DicDvc.DvcDeptName), DataType = typeof(string), Width = 80 });
                colList.Add(new GridColumn() { Caption = "折旧方式", Field = nameof(DicDvc.DvcDeprtypCode), DataType = typeof(string), Width = 100 });
                colList.Add(new GridColumn() { Caption = "其他", Field = nameof(DicDvc.DvcMemo), DataType = typeof(string), Width = 100, TextHAlign = Infragistics.Win.HAlign.Center });
                dgvDicDevice.InitColumns(colList);
  • 相关阅读:
    shell 学习笔记 LinuxShell脚本攻略(第2版)
    [六省联考2017]分手是祝愿
    [SDOI2010]粟粟的书架
    [CQOI2018]解锁屏幕
    [SCOI2007]最大土地面积
    CF369E Valera and Queries
    CF817F MEX Queries
    [HEOI2016/TJOI2016]求和
    [CQOI2018]九连环
    [HNOI2015]亚瑟王
  • 原文地址:https://www.cnblogs.com/yuanshuo/p/12912246.html
Copyright © 2011-2022 走看看