been wondering if i can use a dictionary of the format dictionary<string,list<sqlToLinqClass>> as the datasource id so how can i retrive the values from the list.. or there is a better method..
Regards
Saneesh
1 Answer, 1 is accepted
0
Elian
Telerik team
answered on 02 Mar 2012, 03:19 PM
Hello Saneesh,
Yes, you can. The Dictionary<Key, Value> can be iterated like List<KeyValuePair<Key, Value>>. So every item in this List is KeyValuePair. Here are the expressions:
= Fields.Key //gives you the current key in your case string
= Fields.Value //gives you the current value, in your case List<sqlToLinqClass>
To use that List<sqlToLinqClass> you will have to bind it as a data-source to a repeater item (like Table, Crosstab, List)
Kind regards,
Elian
the Telerik team