zoukankan      html  css  js  c++  java
  • devexpress gridview样式设置

    //序号列宽度
                gridView1.IndicatorWidth = 60;
                //行不可编辑
                gridView1.OptionsBehavior.Editable = false;
                //复选框多选
                gridView1.OptionsSelection.MultiSelect = true;
                gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
                gridView1.DataSourceChanged += new System.EventHandler(gridView1_DataSourceChanged);
                //字体、居中
                gridView1.Appearance.HeaderPanel.Font = new Font("Tahoma", 26F);
                gridView1.Appearance.Row.Font = new Font("Tahoma", 26F);
                gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                gridView1.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
    
                //取消默认选中行
                //最左边状态列
                gridView1.OptionsView.ShowIndicator = false;
                //禁用聚焦单元格矩形
                gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None;
                gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
                gridView1.OptionsSelection.EnableAppearanceFocusedRow = false;
                gridView1.OptionsSelection.EnableAppearanceHideSelection = false;
    
                //隔行变色
                gridView1.Appearance.EvenRow.BackColor = Color.FromArgb(150, 237, 243, 254);
                gridView1.Appearance.OddRow.BackColor = Color.FromArgb(150, 199, 237, 204);
                gridView1.OptionsView.EnableAppearanceEvenRow = true;
                gridView1.OptionsView.EnableAppearanceOddRow = true;
  • 相关阅读:
    小小的学习FPGA建议
    不厌其烦的四大集成电路
    关于FPGA复位的认识
    FPGA与图像处理
    谈谈对zynq的浅显理解
    嵌入ARM硬核的FPGA
    FPGA时序约束一点总结
    FPGA时序优化简单窍门
    学习FPGA,踏上一步台阶
    使用poi读取word2007(.docx)中的复杂表格
  • 原文地址:https://www.cnblogs.com/qixinjian/p/15119118.html
Copyright © 2011-2022 走看看