Hi all,
I am manually binding a RadGrid to an IList of custom objects using the NeedsDataSource event handler.....working great as long as i have a singleton property for each column that i want to display. Where i am a little confused is how to deal with a Function that returns a list of other values.
In my case, the custom object being bound to has a Function that returns a Dictionary<int,double>.....often only 1 entry, but sometimes up to 3.
What I want to have is a column that displays all the keyvalue pairs, with some formatting.
So, if the custom object had properties like this:
ID = 1
Name = "Object1 Name"
Balances = <1,100>, <2,200>, <3,300>
I would want 3 columns in my grid to look sort of like this:
ID Name Balances
---------------------------------------------------------------------
1 Object1 Name ID: 1 contributed $100
ID: 2 contributed $200
ID: 3 contributed $300
I am sure it shouldn't be too hard, but i am not really sure how to do it.
Any advice would be greatly appreciated.
Paul
I am manually binding a RadGrid to an IList of custom objects using the NeedsDataSource event handler.....working great as long as i have a singleton property for each column that i want to display. Where i am a little confused is how to deal with a Function that returns a list of other values.
In my case, the custom object being bound to has a Function that returns a Dictionary<int,double>.....often only 1 entry, but sometimes up to 3.
What I want to have is a column that displays all the keyvalue pairs, with some formatting.
So, if the custom object had properties like this:
ID = 1
Name = "Object1 Name"
Balances = <1,100>, <2,200>, <3,300>
I would want 3 columns in my grid to look sort of like this:
ID Name Balances
---------------------------------------------------------------------
1 Object1 Name ID: 1 contributed $100
ID: 2 contributed $200
ID: 3 contributed $300
I am sure it shouldn't be too hard, but i am not really sure how to do it.
Any advice would be greatly appreciated.
Paul