Help with displaying data selected in Listbox in Grid's cell.
I am using a Listbox as a dropdown box in my Grid, how do I display rows selected in the Grid's cell separated by a comma?
For example if I select BEL, CAN and USA, I need to copy the data selected to the cell of the row selected in the following format: BEL,CAN,USA. and if I deselect USA, I need to only copy BEL,CAN to the cell of the selected row. Below is the current code I'm using to display the listbox as a dropdown box, but I can't display rows selected in the cell.
Private Sub C1TrueDBGrid45_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles C1TrueDBGrid45.Click
.Left = Me.C1TrueDBGrid45.Left + Me.C1TrueDBGrid45.RecordSelectorWidth + Me.C1TrueDBGrid45.Splits(0).DisplayColumns(0).Width + Me.C1TrueDBGrid45.Splits(0).DisplayColumns(1).Width
.Top = Me.C1TrueDBGrid45.Top + Me.C1TrueDBGrid45.RowTop(Me.C1TrueDBGrid45.Row)
.Visible = True
Open in new windowAnd on the click event Clear and go through the listItems of the Listbox and if is selected add it to the ListOfSelected, something like ListOfSelected+=ListItem+'