Help w/ choosing a control type

  • Thread starter Thread starter Julie
  • Start date Start date
J

Julie

I have the following need for a custom control.

Two columns, n rows.

Column 1 is simple text (non-editable).

Column 2 is drop-down combo boxes (1 for each row).

Needs to be sortable (with column headers).

I'd prefer the second column to not display a column of combo boxes, but rather
the selected item text. When the use clicks on that cell, the combo box
appears.

I'm leaning to a datagrid w/ a template column for col 2, but was wondering if
there is something that is already out there that will suit my needs.

Thanks for any info.
 
Check out PropertyGrid. If that doesn't meet your needs, subclassing a
ListView control would be lighter and snappier.

-vJ
 
Hi Julie


You can use a Listview with two columns, when the user select a row you can
place a combobox right where the second column is making it looks like it
was contained in the grid all the time, you should make visible/hidden the
combobox as needed as well as calculate its position and if needed the
values, it sound like too much trouble but I think it's the best way to go
and at the end it should not be so difficult :)

Cheers,
 
Back
Top