"Vivek" <vi******@gmail.comwrote in message
news:76**********************************@r37g2000 prr.googlegroups.com...
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.