How to Display Single Column in a ListBox
9 Dec 20191 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.