May be the subject is complicated, so I'll try to explain:
I get some data from database which some of them has TypeId=1 and some has TypeId=2. I want to take data which TypeId=1 to header template and TypeId=2 to itemtemplate in the Datalist control.
How can I do it?