Dropdown should show only the display member

前端 未结 3 1527
情歌与酒
情歌与酒 2021-01-19 08:43

I have bound a collection to ultracombo and I have specified the value member and display member. The collections have many columns, N

3条回答
  •  逝去的感伤
    2021-01-19 08:50

    The UltraCombo will generate all of the columns automatically. You could either add the column you want before setting the data source and set cboUltra.DisplayLayout.NewColumnLoadStyle to NewColumnLoadStyle.Hide or you could hide all of the columns except the one you want after they are created by looping through them in the InitializeLayout event and setting them all to hidden except the one that you want.

    You could also look at the UltraComboEditor as that only displays a single column. Whether this is an options for you will depend on what features you need in your drop down.

提交回复
热议问题