"Vivek" <(E-Mail Removed)> wrote in message
news:76bbea6a-d1c5-4630-bf03-(E-Mail Removed)...
> Thank you very much for your reply. My requirement is I need to have a
> control with three columns, where the first column is a CheckBox,
> second is normal column and third is a column which will have controls
> based on the value in the second column
> eg: chekbox Question1 CheckBox
> checkbox Question2 TextBox
> checkbox Question3 ComboBox
> and so on... Can I create controls inside a ListBox or a ListView? How
> can I do it..? Thanks in advance....
Ah, no, you can't the PropertyGrid for this purpose. It always displays
two columns, and the first one is always the name of each property.
If I have understood what you are describing, I think that a DataGrid
control would be the best for you, but you will have to do quite a bit of
work to sublass the DataGridColumnStyle for the third column, which needs to
host different controls depending on the value of another column.
|