Please can we have an example of adding a row to the Multi Column Combo Box, that does not use a Datasource
I wanted to have a column with a name and another with a checkbox.
it seems rather simple, but there is no example in the documentation that details a simple add items
I did manage to add records via a datatable, but this does not add to the existing columns in the control, but adds new columns
And does not set the value of the checkbox
I wanted to have a column with a name and another with a checkbox.
it seems rather simple, but there is no example in the documentation that details a simple add items
I did manage to add records via a datatable, but this does not add to the existing columns in the control, but adds new columns
And does not set the value of the checkbox
Sub
LoadData()
Dim
table1
As
DataTable =
New
DataTable()
table1.Columns.Add(
"ID"
)
table1.Columns.Add(
"Name"
)
table1.Columns.Add(
"Selected"
)
table1.Rows.Add(1,
"Ivan Petrov"
,
True
)
table1.Rows.Add(2,
"Stefan Muler"
,
True
)
table1.Rows.Add(3,
"Alexandro Ricco"
,
False
)
cboTestCheckbox.DataSource = table1
cboTestCheckbox.DisplayMember =
"Name"
End
Sub