简体   繁体   English

是否可以更改Ultracombo列标题

[英]Is it possible to change an Ultracombo column caption

In vb.net, I have ultragrids , and I know with these it is possible to change the captions of a column (say, from first_name to First Name ). 在vb.net中,我具有ultragrids ,并且我知道可以更改列的标题(例如,从first_name更改为First Name )。 On another window, I also have an UltraCombo (the combobox equivalent). 在另一个窗口上,我还有一个UltraCombo (等效的combobox )。 When the down arrow is clicked to load the list, the only column displayed is Supplier_Name . 单击向下箭头以加载列表时,唯一显示的列是Supplier_Name Is there a way to rename this column, to remove the _? 有没有一种方法可以重命名此列,以删除_?

The Ultracombo is called cmbSuppCode , and I've tried Ultracombo称为cmbSuppCode ,我已经尝试过

cmbSuppCode.DisplayLayout 
'couldn't find anything

cmbSuppCode.Cells

'Also nothing

In the same way you do for an UltraGrid 用与您处理UltraGrid相同的方式

 cmbSuppCode.DisplayLayout.Bands(0).Columns(0).Header.Caption = "Supplier Name" 

Of course the index for Bands and for Columns are assumed to be the Index for the first (or probably unique) band and for the first Column inside that band 当然,将Bands和Columns的索引假定为第一个(或可能是唯一的)波段以及该波段内的第一个Column的索引

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM