Is it possible to display different fields in each item of a datalist?
For example the first item will display id, name, phone, is_person and the second item (it's not a person) will display comm_id, title, description, is_person.
My dataset contains all these fields. Depending on the "is_person" flag I want to display the different fields.
The reason I'm asking is that I still want to use the DataBind method, I would rather not create an HTML table for this and using a datagrid is not an option for me.
Thank you.
Let me put it this way:
While StressLevel Is High
Productivity -= 1
Marriage = Nothing
End While
For example the first item will display id, name, phone, is_person and the second item (it's not a person) will display comm_id, title, description, is_person.
My dataset contains all these fields. Depending on the "is_person" flag I want to display the different fields.
The reason I'm asking is that I still want to use the DataBind method, I would rather not create an HTML table for this and using a datagrid is not an option for me.
Thank you.
Let me put it this way:
While StressLevel Is High
Productivity -= 1
Marriage = Nothing
End While