G
Guest
I want to have a listbox that shows a checkbox and a textbox.
I created a user control that has a checkbox and a textbox in it and have
been trying to add it to a listbox but I can't get it to show up for each
item I add to the listbox.
foreach (Column column in columns)
{
ColumnsListBox.Items.Add(column.Name);
ColumnsListBox.Controls.Add(new ColumnListControl(true, column.Name,
column.Name));
}
I've also looked at using an Owner Draw listbox but can't figure that out
either.
I basically need something that looks like a listbox with 2 columns in it --
a checkbox and a textbox.
How can I get that to work so I can add items to the object and set the
subitem values?
Thanks in advance.
I created a user control that has a checkbox and a textbox in it and have
been trying to add it to a listbox but I can't get it to show up for each
item I add to the listbox.
foreach (Column column in columns)
{
ColumnsListBox.Items.Add(column.Name);
ColumnsListBox.Controls.Add(new ColumnListControl(true, column.Name,
column.Name));
}
I've also looked at using an Owner Draw listbox but can't figure that out
either.
I basically need something that looks like a listbox with 2 columns in it --
a checkbox and a textbox.
How can I get that to work so I can add items to the object and set the
subitem values?
Thanks in advance.