Datagrid with varying controls on each row
I have a set of questions in xml,each of which has different answer types like text,decimal,boolean
I want to display this questions inside a datagrid.
Say a datagrid will have two columns(Question and answer).
But the answer column should contain a text box if answer type is text or decimal,two radio buttons if answer type is boolean,etc.
Seems like I cannot bind a dataset created from xml and have the datagrid display the appropriate answer control for the question,coz if I create a template column for the answer,I could not just place a textbox or radio buttons there for it will depend on the resultsets.
I wonder if I can create a datagrid and add datagrid items programmatically(without binding datagrid to a datasource) and let me decide whether to put a textbox or radio buttons on the second column.
Is this possible or any better approach to this?
President,Software Engineer - Narrasoft Philippines Inc.
\"Dont you ever give up!\"