Change layout of rows in DataList in accordance with data
I have following situation:
I want to make table, rows of which would contain different appearence in accordance with data they were fed. For instance, when I have plain data there should be 1 textbox and when I have href then there should be 2 textboxes (for URL and COver respectively).
Currently I try to do it using DataList. But it goes not so good. And from this point of view I do not see any difference between DataList, DataGrid and Repeater. The only way to solve it I see by now is to manage property visible of some elements.
But I'm curious if there are any better solutions.
Thank you in advice.
We'll never stop livin' this way