I use a ItemDataBound for a repeater.
But i use 2 kinds of linq querys to bind it.
Some of them has a MerkID, and some doesnt have this item.
So its easy i need to do this:
//Code for linq query 1
//Code for linq query 2
So of course the if selection doesnt work, but how can i do that?
I already tryed this:
DataRowView drv = (DataRowView)e.Item.DataItem;
But that doenst work because he cant convert it to a datarowview because its a linq class.
So what to do?
Right now i use a try and catch, but there are better solutions i guess...
View Complete Post