How to Display Single Column in a ListBox
9 Dec 2019 / 1 minute to read
To turn off showing multiple columns in a ListBox, follow the below given steps.
- Access the GridListControl and set its MultiColumn property to False.
// Turns off multiple columns display. this.multiColumnBoundCombo.ListBox.MultiColumn = false;
' Turns off multiple columns display. Me.multiColumnBoundCombo.ListBox.MultiColumn = False
- The dropdown will then simply show the first column in the bound datasource (the combo’s DisplayMember property will not be consulted here). Make sure that in your SQL query, the desired column to be shown in the drop-down is the first one.
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page