大赵传奇

GIS解决方案,webgis , 桌面、数据、服务--QQ276605216

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

单元格换行:

this.gridColumn2.CellStyles.Default.Alignment = DevComponents.DotNetBar.SuperGrid.Style.Alignment.MiddleCenter;
this.gridColumn2.CellStyles.Default.AllowWrap = DevComponents.DotNetBar.SuperGrid.Style.Tbool.True;

 

superTabControl:

修改标题颜色

 

 

 C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\CSharp\2052

        private void superGridControl1_GetRowCellStyle(object sender, GridGetRowCellStyleEventArgs e)
        {
            if (e.StyleType != StyleType.Default) { return; }

            var row = e.GridRow as GridRow;
            if (row == null) { return; }

            if (((SealupItem)row.DataItem).State == "1")
            {
                e.Style.Background = new Background(Color.Tomato);
            }
        }

  

 

 

posted on 2018-11-01 13:55  赵长青  阅读(378)  评论(0)    收藏  举报