GridColumn colVersion = new GridColumn();
colVersion.AppearanceCell.Options.UseTextOptions = true;
colVersion.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
很多文章把设置useTextOptions=true漏掉了,导致没有效果
GridColumn colVersion = new GridColumn();
colVersion.AppearanceCell.Options.UseTextOptions = true;
colVersion.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
很多文章把设置useTextOptions=true漏掉了,导致没有效果