GridView列标题的折行显示

//表头折行设置
this.gridView1.ColumnPanelRowHeight = 40;
this.gridView1.OptionsView.AllowHtmlDrawHeaders = true;
this.gridView1.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
//上面的3个属性设置完成后, 将GridColumn.Caption = "单价<br>(元)",即可将(元)放在第二行.

 

//表头及行内容居中显示
this.gridView1.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
posted @ 2012-09-21 08:57  C#老头子  Views(1024)  Comments(0Edit  收藏  举报