我在C#WPF應用程序中使用DevExpress GridControl。我在用作該網格的ItemSource的集合中擁有諸如ProductType,ProductCategory等的屬性名稱。(AutoGeneratingColumn設置為true。)但是我看到該網格在列標題標題中的單詞之間添加了額外的空間。 。例如,產品類型,產品類別等有什么方法可以刪除字幕中出現的空格?我確實嘗試了以下方法,但是沒有運氣:e.column.ColumnChooserHeaderCaption= e.column.FieldName;
1 回答

白衣非少年
TA貢獻1155條經驗 獲得超0個贊
DevExpress WPF網格:
//If this property is null the bound FieldName will be used with spaces between capitals
BaseColumn.Header = "Custom Header";
DevExpress WinForms網格:
//Same details apply if null as in WPF example
GridColumn.Caption = "Custom Header";
- 1 回答
- 0 關注
- 149 瀏覽
添加回答
舉報
0/150
提交
取消