DevExpressGridControl内容始终显示
原创-
将标题文本设置为中心并设置步骤Views->Appearance->HeaderPanel->TextOptions->HAlignment
代码设置如下:gridViewItem.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
-
将柱设置为中心并设置台阶Columns->AppearanceCell->TextOptions->HAlignment
代码设置如下:gridViewItem.Columns.ColumnByFieldName("列名").AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
-
将所有列内容设置为中心并设置步骤Views->Appearance->Row->TextOptions->HAlignment
代码设置如下:gridViewItem.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除