Adding Aggregate to some grid columns I discovered that in ItemDataBound the item.dataitem has been changed from DataRowView to this class dynamicClass1.
How could I use values from the associated Datarow now ?
One suggestion would be setting the DataKeyNames as the field and accessing the value using GetDataKeyValue() method of item.
item.GetDataKeyValue("CustomerID");
But I am not satisfied with this, we can't enter in datakeys all necessary fields from large records.
I have found threads related to this problem which seems related to .net 3.5 and usage of LinQ.
It is a side effect of net 3.5 evolution which as not been correctly assumed: if linQ is used somewhere with Dynamics classes it should be done without loose of functionalities.
Telerik or MS should have provided a way, as easy as previously to acces our dataitem, today name of this property became totally inadapted: there is not data item behind it.